From 55ddc4a25e225c6f74003012ff2fe94bcade09be Mon Sep 17 00:00:00 2001 From: Jishnu Bhattacharya Date: Thu, 13 Jul 2023 18:18:02 +0530 Subject: [PATCH] skip duplicate CI runs (#100) --- .github/workflows/ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c07800f..1c5bc1b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,8 +12,24 @@ on: - 'LICENSE' - 'README.md' - '.github/workflows/TagBot.yml' + +concurrency: + group: build-${{ github.event.pull_request.number || github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: + pre_job: + # continue-on-error: true # Uncomment once integration is finished + runs-on: ubuntu-latest + # Map a step output to a job output + outputs: + should_skip: ${{ steps.skip_check.outputs.should_skip }} + steps: + - id: skip_check + uses: fkirc/skip-duplicate-actions@v5 test: + needs: pre_job + if: needs.pre_job.outputs.should_skip != 'true' name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} strategy: