From 5fb0fc3e7c8f76240d48c554741b6b50b4b6f760 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Strub Date: Thu, 7 Dec 2023 12:14:47 +0100 Subject: [PATCH] CI: skip duplicated workflow --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71a962d..1805a6e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,20 @@ env: OPAMJOBS: 2 jobs: + pre_job: + runs-on: ubuntu-20.04 + outputs: + should_skip: ${{ steps.skip_check.outputs.should_skip }} + steps: + - uses: fkirc/skip-duplicate-actions@v5 + id: skip_check + with: + cancel_others: 'true' + concurrent_skipping: 'same_content_newer' + easycrypt: + needs: pre_job + if: needs.pre_job.outputs.should_skip != 'true' name: Compile & Cache EasyCrypt runs-on: ubuntu-20.04 container: