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 #741

Merged
merged 1 commit into from
May 4, 2022

Conversation

SergeAstapov
Copy link
Contributor

Syncs with latest addon blueprint, per ember-cli/ember-cli#9697

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).

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).
Copy link
Member

@marcoow marcoow left a comment

Choose a reason for hiding this comment

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

👍

@marcoow marcoow merged commit 272a8ea into mainmatter:master May 4, 2022
@SergeAstapov SergeAstapov deleted the actions-concurrency branch May 4, 2022 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants