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 d4eddda
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:
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'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'

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 d4eddda

Please sign in to comment.