Skip to content

Commit

Permalink
CI: cancel old PR builds when new commits are pushed to a PR branch (#…
Browse files Browse the repository at this point in the history
…414)

Co-authored-by: Curtis Vogt <[email protected]>
  • Loading branch information
DilumAluthge and omus authored Nov 26, 2022
1 parent 147c8c2 commit daa5f92
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
tags: "*"
schedule:
- cron: "0 2 * * *" # Daily at 2 AM UTC (8 PM CST)
# Skip/cancel execution of queued/running jobs from outdated commits. Jobs run on the
# `master` branch are not subject to these restrictions and are always executed.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
Expand Down

0 comments on commit daa5f92

Please sign in to comment.