Skip to content

Commit

Permalink
Cancel in-progress scheduled GHA runs.
Browse files Browse the repository at this point in the history
These were already being grouped because we group by branch name for scheduled workflow runs.  By not canceling in-progress runs, a single stalled execution could block our CI indefinitely.

PiperOrigin-RevId: 692298661
  • Loading branch information
mkruskal-google authored and copybara-github committed Nov 1, 2024
1 parent 6f8662c commit 51de666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ permissions:

concurrency:
group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: ${{ contains(fromJSON('["pull_request", "pull_request_target", "workflow_dispatch"]'), github.event_name) }}
cancel-in-progress: ${{ contains(fromJSON('["pull_request", "pull_request_target", "workflow_dispatch", "schedule"]'), github.event_name) }}

jobs:
set-vars:
Expand Down

0 comments on commit 51de666

Please sign in to comment.