Skip to content

Commit

Permalink
ci: update concurrency group to be specific for liquidation testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi-siddique committed Aug 21, 2024
1 parent 53f1f64 commit 2a9fbed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/liquidation-reconstitution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,19 @@ on:
pull_request:
types:
- labeled
- unlabeled
- synchronize

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
run-e2e:
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(github.event.label.name, 'liquidation-reconstitution-testing')
if: >-
github.event_name != 'pull_request' || github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch' ||
contains(github.event.pull_request.labels.*.name, 'liquidation-reconstitution-testing')
uses: ./.github/workflows/reusable-workflow.yml
with:
docker_compose_command: |
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/liquidation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,19 @@ on:
pull_request:
types:
- labeled
- unlabeled
- synchronize

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
run-e2e:
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(github.event.label.name, 'liquidation-testing')
if: >-
github.event_name != 'pull_request' || github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch' ||
contains(github.event.pull_request.labels.*.name, 'liquidation-testing')
uses: ./.github/workflows/reusable-workflow.yml
with:
docker_compose_command: |
Expand Down

0 comments on commit 2a9fbed

Please sign in to comment.