Skip to content

Commit 61ec5af

Browse files
committed
chore(ci): cancel in-flight approvals when a PR is updated
1 parent f688d2a commit 61ec5af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/e2e-test.yml

+4
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,16 @@ jobs:
2626
github.event.pull_request.head.repo.full_name != github.repository &&
2727
'external' || 'internal' }}
2828
runs-on: ubuntu-latest
29+
concurrency:
30+
group: ${{ github.event_name == 'pull_request_target' && format('e2e-authorize-pr-{0}', github.event.pull_request.number) || 'e2e-authorize' }}
31+
cancel-in-progress: true
2932
steps:
3033
- run: true
3134

3235
e2e-test:
3336
needs: authorize
3437
runs-on: ubuntu-latest
38+
concurrency: 'e2e-test'
3539
steps:
3640
- name: Set up Go
3741
uses: actions/setup-go@v4

0 commit comments

Comments
 (0)