From ed78427e51ba81a42ce4708cda86246dae7daf08 Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Fri, 14 Jul 2023 10:00:51 -0400 Subject: [PATCH] Update integration_tests workflow to be skipped if duplicate --- .github/workflows/integration_tests.yaml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration_tests.yaml b/.github/workflows/integration_tests.yaml index 092c906ef..42c110e9f 100644 --- a/.github/workflows/integration_tests.yaml +++ b/.github/workflows/integration_tests.yaml @@ -1,4 +1,4 @@ -name: Integration Test +name: Integration Tests on: push: @@ -7,7 +7,24 @@ on: branches: [ v0.10 ] jobs: - test: + + pre_job: + # continue-on-error: true # Uncomment once integration is finished + runs-on: ubuntu-latest + outputs: + should_skip: ${{ steps.skip_check.outputs.should_skip }} + steps: + - id: skip_check + uses: fkirc/skip-duplicate-actions@v5 + with: + concurrent_skipping: 'never' + skip_after_successful_duplicate: 'true' + paths_ignore: '["v0.10/docs/**"]' + paths: '["v0.10/**.go", "v0.10/*.sh", "v0.10/.github", "v0.10/data/ansible/conf/samples/**", "v0.10/data/tariffplans"]' + + main_job: + needs: pre_job + if: needs.pre_job.outputs.should_skip != 'true' runs-on: ubuntu-latest steps: - name: Checkout code