Skip to content

Commit

Permalink
Add the function to cancel the progressing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
paopa committed Mar 13, 2024
1 parent 24ac94c commit 2065a05
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ai-service-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ on:
permissions:
contents: read

# Cancel previous runs.
concurrency:
# Cancel all workflow runs except latest within a concurrency group. This is achieved by defining a concurrency group for the PR.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
cancel-in-progress: true


defaults:
run:
working-directory: wren-ai-service
Expand Down

0 comments on commit 2065a05

Please sign in to comment.