Skip to content

Commit

Permalink
Cancel jobs in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
surik committed Dec 6, 2023
1 parent 7f3e6df commit be7209b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/sync-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }}
cancel-in-progress: true

jobs:
trigger_sync_main:
runs-on: ubuntu-latest
Expand All @@ -15,4 +19,4 @@ jobs:
workflow: sync-main.yml
repo: ${{ secrets.UPSTREAM_REPO }}
token: ${{ secrets.SIGN_GITHUB_TOKEN }}
inputs: '{ "tag": "${{ github.ref }}" }'
inputs: '{ "sha": "${{ github.sha }}" }'

0 comments on commit be7209b

Please sign in to comment.