Skip to content

Commit

Permalink
Skip concurrent jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed Nov 2, 2023
1 parent 409da73 commit 2fe9025
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,18 @@ on:
- "main"

jobs:
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: 'same_content_newer'
build:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
name: build (${{ matrix.python-version }}, ${{ matrix.platform.name }})
runs-on: ${{ matrix.platform.os }}
strategy:
Expand Down

0 comments on commit 2fe9025

Please sign in to comment.