mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-20 18:57:17 +03:00
chore(ci): publish dev builds every 6 hours instead of on every push (#63674)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# plan-release.sh: decides version, channel and npm dist-tag from the event, ref and dispatch inputs
|
||||
# (INPUT_BUMP, INPUT_VERSION) only, and writes them to $GITHUB_OUTPUT. Nothing here reads repository files.
|
||||
#
|
||||
# push or dispatch on dev -> dev 0.0.0-dev-<run> npm tag dev, desktop
|
||||
# schedule or dispatch on dev -> dev 0.0.0-dev-<run> npm tag dev, desktop
|
||||
# dispatch on dev with bump/version -> latest x.y.z npm tag latest, releasers only, notes required
|
||||
# push or dispatch on beta -> beta 0.0.0-beta-<run> desktop only
|
||||
# pull_request -> pr 0.0.0-pr-<run> everything, dry run
|
||||
@@ -13,7 +13,7 @@
|
||||
versioned=false
|
||||
if [ -n "${INPUT_BUMP:-}" ] || [ -n "${INPUT_VERSION:-}" ]; then versioned=true; fi
|
||||
case "$GITHUB_EVENT_NAME:$GITHUB_REF:$versioned" in
|
||||
push:refs/heads/dev:false | workflow_dispatch:refs/heads/dev:false) channel="dev" ;;
|
||||
schedule:refs/heads/dev:false | workflow_dispatch:refs/heads/dev:false) channel="dev" ;;
|
||||
workflow_dispatch:refs/heads/dev:true) channel="latest" ;;
|
||||
push:refs/heads/beta:false | workflow_dispatch:refs/heads/beta:false) channel="beta" ;;
|
||||
pull_request:*:false) channel="pr" ;;
|
||||
|
||||
@@ -16,7 +16,9 @@ run-name: "${{ format('release {0}{1}', inputs.bump, inputs.version) }}"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [dev, beta]
|
||||
branches: [beta]
|
||||
schedule:
|
||||
- cron: "17 */6 * * *"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
bump:
|
||||
@@ -83,8 +85,8 @@ jobs:
|
||||
|
||||
# release.yml does not wait for the check-test push run on the same commit, so a stable release would publish
|
||||
# whatever that run later says. This gate runs the whole suite — unit tests on both OSes, the compiled builds and
|
||||
# the Linux browser suites — before any publish job below. Continuous dev and beta builds skip it: they publish
|
||||
# their own channel from a dev push, whose check-test run covers the same commit.
|
||||
# the Linux browser suites — before any publish job below. Dev and beta builds skip it: check-test already
|
||||
# runs on pushes to those branches.
|
||||
verify:
|
||||
needs: plan
|
||||
if: needs.plan.outputs.channel == 'latest'
|
||||
|
||||
Reference in New Issue
Block a user