mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 09:35:26 +00:00
Merge pull request #370 from misternebula/actions-staging
build.yaml: better duplicate build avoidance
This commit is contained in:
commit
fa17c80b5c
13
.github/workflows/build.yaml
vendored
13
.github/workflows/build.yaml
vendored
@ -7,8 +7,19 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
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@master
|
||||
with:
|
||||
paths_ignore: '["**/README.md"]'
|
||||
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
|
||||
build:
|
||||
if: (github.event_name == 'pull_request' && github.event.pull_request.merged != 'true') || github.event_name == 'push'
|
||||
needs: pre_job
|
||||
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user