Skip to content

Commit

Permalink
add duplicate job check to skip duplicate workflow executions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-maus committed Mar 4, 2025
1 parent 8546db7 commit bff936a
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 @@ -5,7 +5,21 @@ on:
workflow_dispatch:

jobs:
skip_check:
name: Duplicate Check
runs-on: ubuntu-24.04
outputs:
should_skip: ${{ steps.check.outputs.should_skip }}
steps:
- id: check
uses: fkirc/[email protected]
with:
skip_after_successful_duplicate: 'true'
concurrent_skipping: 'same_content_newer'

build:
needs: skip_check
if: ${{ needs.skip_check.outputs.should_skip != 'true' }}
runs-on: ubuntu-24.04
timeout-minutes: 480

Expand Down

0 comments on commit bff936a

Please sign in to comment.