Skip to content

Commit

Permalink
CI: skip duplicated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
strub committed Dec 7, 2023
1 parent 4bea5b6 commit f3532a8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,21 @@ env:
OPAMJOBS: 2

jobs:
pre_job:
name: Check for Duplicates Jobs
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:
concurrent_skipping: 'same_content_newer'
skip_after_successful_duplicate: 'true'

easycrypt:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
name: Compile & Cache EasyCrypt
runs-on: ubuntu-20.04
container:
Expand Down

0 comments on commit f3532a8

Please sign in to comment.