From 53f1f644028e8cf120b5026ca03044bca3884572 Mon Sep 17 00:00:00 2001 From: rabi-siddique Date: Tue, 20 Aug 2024 17:02:48 +0500 Subject: [PATCH] ci: label triggered liquidation testing --- .github/workflows/liquidation-reconstitution.yml | 7 +++++-- .github/workflows/liquidation.yml | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/liquidation-reconstitution.yml b/.github/workflows/liquidation-reconstitution.yml index 7b17a065..bfb402ed 100644 --- a/.github/workflows/liquidation-reconstitution.yml +++ b/.github/workflows/liquidation-reconstitution.yml @@ -34,14 +34,17 @@ on: required: false default: latest type: string + pull_request: + types: + - labeled concurrency: - group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || - github.head_ref || github.ref }}' + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || 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') uses: ./.github/workflows/reusable-workflow.yml with: docker_compose_command: | diff --git a/.github/workflows/liquidation.yml b/.github/workflows/liquidation.yml index 1d171c05..d3389d4c 100644 --- a/.github/workflows/liquidation.yml +++ b/.github/workflows/liquidation.yml @@ -34,14 +34,17 @@ on: required: false default: latest type: string + pull_request: + types: + - labeled concurrency: - group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || - github.head_ref || github.ref }}' + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || 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') uses: ./.github/workflows/reusable-workflow.yml with: docker_compose_command: |