Unverified Commit 5ea6b8d7 authored by Pavithra Vijayakrishnan's avatar Pavithra Vijayakrishnan Committed by GitHub
Browse files

ci: Add concurrency check to auto cancel running actions. (#2438)


Signed-off-by: default avatarPavithra Vijayakrishnan <160681768+pvijayakrish@users.noreply.github.com>
parent 6441ed36
......@@ -7,12 +7,13 @@ on:
push:
branches:
- main
- release/*.*.*
pull_request:
# Do not cancel main branch runs
# Cancel any previous check runs for the same pull request to avoid redundant workflows.
concurrency:
group: ${{ github.workflow }}-dynamo-build-test-${{ github.ref_name || github.run_id }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
group: ${{ github.event_name == 'pull_request' && format('{0}-{1}', github.workflow, github.event.pull_request.number) || format('{0}-{1}', github.workflow, github.run_id) }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build-test:
......
......@@ -19,6 +19,7 @@ on:
workflows: ['NVIDIA Test Github Validation']
types:
- completed
jobs:
test-results:
name: Test Results
......
......@@ -19,6 +19,7 @@ on:
push:
branches:
- main
- release/*.*.*
- "pull-request/[0-9]+"
# Skip docs only changes
paths-ignore:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment