Skip to content

ci: cancel previous runs using GH api - #3874

Merged
melekes merged 2 commits into
mainfrom
anton/cancel-previous-runs
Aug 27, 2024
Merged

melekes merged 2 commits into
mainfrom
anton/cancel-previous-runs

Conversation

@melekes

@melekes melekes commented Aug 27, 2024

Copy link
Copy Markdown
Collaborator

instead of the custom job

See https://github.com/styfle/cancel-workflow-action:

Important

You probably don't need to install this custom action.

Instead, use the native concurrency property to cancel workflows, for example:

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
Read GitHub's official documentation to learn more.

PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

instead of the custom job

See https://github.com/styfle/cancel-workflow-action:

```
Important

You probably don't need to install this custom action.

Instead, use the native concurrency property to cancel workflows, for example:

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
Read GitHub's official documentation to learn more.
```
@melekes
melekes requested a review from a team as a code owner August 27, 2024 07:57
@melekes
melekes requested a review from a team August 27, 2024 07:57
@melekes melekes self-assigned this Aug 27, 2024
@melekes melekes added automerge ci Continuous integration-related labels Aug 27, 2024
@melekes
melekes enabled auto-merge August 27, 2024 08:00
@melekes
melekes added this pull request to the merge queue Aug 27, 2024
Merged via the queue into main with commit a8d075a Aug 27, 2024
@melekes
melekes deleted the anton/cancel-previous-runs branch August 27, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge ci Continuous integration-related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants