Use concurrency to cancel duplicate workflow runs

Docs: https://docs.github.com/en/actions/using-jobs/using-concurrency
This commit is contained in:
arkon
2022-08-10 22:51:01 -04:00
parent e511f24979
commit b0da0753d9
3 changed files with 8 additions and 22 deletions

View File

@@ -6,18 +6,16 @@ on:
tags:
- v*
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
name: Build app
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.10.0
with:
access_token: ${{ github.token }}
all_but_latest: true
- name: Clone repo
uses: actions/checkout@v3