Skip rather than cancelling concurrent docs builds

pull/481/head
Wilfred Hughes 2023-02-04 10:57:40 +07:00
parent eb8097f626
commit cf7b927765
1 changed files with 13 additions and 2 deletions

@ -6,10 +6,21 @@ on:
- master
jobs:
pre_deploy:
runs-on: ubuntu-20.04
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: always
deploy:
needs: pre_deploy
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3