Skip to content

Commit

Permalink
Cancle old runners in PR content (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
Or-Geva authored Nov 22, 2021
1 parent d2e3cda commit fa3ec33
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
# Triggers the workflow on labeled PRs only.
pull_request_target:
types: [labeled]
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
JFrog-Client-Go-Tests:
if: contains(github.event.pull_request.labels.*.name, 'safe to test') || github.event_name == 'push'
Expand Down

0 comments on commit fa3ec33

Please sign in to comment.