Skip to content

Commit

Permalink
Merge pull request storm-devs#327 from q4a/feature/ci-reduce2
Browse files Browse the repository at this point in the history
CI: add skip-duplicate-actions
  • Loading branch information
espkk authored Jan 19, 2022
2 parents 877a91a + ab7bf42 commit b42d1d1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/cibuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,22 @@ on:
- '*.md'

jobs:
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/[email protected]
with:
# skip concurrent jobs if they are on the same thing
concurrent_skipping: 'same_content'
# never skip PR, release or manual/scheduled runs
do_not_skip: '["pull_request", "release", "workflow_dispatch", "schedule"]'

build-windows:
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: windows-2019
strategy:
fail-fast: false
Expand Down

0 comments on commit b42d1d1

Please sign in to comment.