Skip to content

Commit

Permalink
Add: Cache number and cancel concurrent job action when a new push oc…
Browse files Browse the repository at this point in the history
…curs in workflow.
  • Loading branch information
Labbeti committed Aug 11, 2023
1 parent 6014407 commit 7be0bb1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/python-package-pip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ on:
pull_request:
branches: [ main, dev ]

env:
CACHE_NUMBER: 0 # increase to reset cache manually

# Cancel workflow if a new push occurs
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 7be0bb1

Please sign in to comment.