Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cancel stale actions workflows #9697

Merged
merged 1 commit into from
Dec 13, 2021
Merged

Conversation

runspired
Copy link
Contributor

@runspired runspired commented Nov 16, 2021

This uses Github Action's concurrency feature to kill the workflow runs of commits that are not the current
head commit of a PR. head_ref is only set for PRs source, which is why we fall back to ref (so push workflows will run one job for each branch for the most recent commit).

This uses Github Action's
[concurrency](https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency)
feature to kill the workflow runs of commits that are not the current
head commit of a PR.  `head_ref` is only set for PRs
[source](https://docs.github.com/en/actions/learn-github-actions/contexts#github-context),
which is why we fall back to `ref` (so push workflows will run one job
for each branch for the most recent commit).
@rwjblue rwjblue changed the base branch from master to beta December 13, 2021 19:54
Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 - This is closer to what we had with the old Travis CI setup, and definitely will help prevent a bunch of stray CI jobs blocking the queue if folks are "push happy" on pull requests.

@rwjblue rwjblue merged commit 323c22d into ember-cli:beta Dec 13, 2021
@runspired runspired deleted the patch-2 branch December 13, 2021 21:02
SergeAstapov added a commit to SergeAstapov/ember-cookies that referenced this pull request May 3, 2022
Syncs with latest addon blueprint, per ember-cli/ember-cli#9697

This uses Github Action's
[concurrency](https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency)
feature to kill the workflow runs of commits that are not the current
head commit of a PR.  `head_ref` is only set for PRs
[source](https://docs.github.com/en/actions/learn-github-actions/contexts#github-context),
which is why we fall back to `ref` (so push workflows will run one job
for each branch for the most recent commit).
marcoow pushed a commit to mainmatter/ember-cookies that referenced this pull request May 4, 2022
Syncs with latest addon blueprint, per ember-cli/ember-cli#9697

This uses Github Action's
[concurrency](https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency)
feature to kill the workflow runs of commits that are not the current
head commit of a PR.  `head_ref` is only set for PRs
[source](https://docs.github.com/en/actions/learn-github-actions/contexts#github-context),
which is why we fall back to `ref` (so push workflows will run one job
for each branch for the most recent commit).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants