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

Automatically cancel running jobs when pushing commits #138

Merged
merged 1 commit into from
Dec 7, 2021

Conversation

dbarbier
Copy link
Contributor

@dbarbier dbarbier commented Dec 7, 2021

Documentation mentions github.ref and github.head_ref
https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency

Let us consider a branch "foo" being pushed on a forked repository:
github.head_ref:

  • Pull request: "foo"
  • Push: ""
    github.ref:
  • Pull request: "refs/pulls/<PR-id>/merge"
  • Push: "refs/heads/foo"

github.ref seems to be what we want.

Documentation mentions github.ref and github.head_ref
  https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency

Let us consider a branch "foo" being pushed on a forked repository:
  github.head_ref:
  * Pull request: "foo"
  * Push: ""
  github.ref:
  * Pull request: "refs/pulls/<PR-id>/merge"
  * Push:  "refs/heads/foo"

github.ref seems to be what we want.
@galleon galleon merged commit 837309f into airbus:master Dec 7, 2021
@dbarbier dbarbier deleted the db/cancel-in-progress branch December 7, 2021 17:27
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.

3 participants