Repository navigation
ci: run push workflows only on develop, cancel superseded runs - #294
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
branches: [develop]to thepushtrigger in all 17 project workflows; existingpathsfilters and everyworkflow_dispatchblock are unchangedconcurrencyblock to the same files (group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }},cancel-in-progress: true) so rapid re-pushes cancel superseded runs instead of stacking on the self-hosted runnersgithub.event_namesuffix keepsworkflow_dispatch(deploy) runs in their own group, so a push to develop can never cancel an in-flight production deploy_common.yml,_build.yml,_deploy.yml,codeql.yml,sim.yml;gh workflow run <name> -f environment='deploy to prd'remains the production deploy entry pointTesting
yaml.safe_load; each verified to havepush.branches == [develop], its originalpathslist, the exact concurrency group string,cancel-in-progress: true, and an intactworkflow_dispatchon:/concurrencyblocks in.github/workflows/*.ymlproject filesgh workflow run scraper_hiscore --ref t3/ci-develop-only -f environment=testwas accepted by GitHub Actions (confirming the modified YAML is valid); run 43538923777 executed only thecommon / lock_filejob — no build/deploy jobs, which gate onenvironment == 'deploy to prd'.github/workflows/**matches no project workflow'spathsfilter