Cancels previous runs associated with a workflow (#3426)

This commit is contained in:
Igor Pečovnik 2022-01-22 19:44:43 +01:00 committed by GitHub
parent deda43aca8
commit 821a2e557d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,20 @@ on:
jobs:
##########################################################################################
# #
# cancels previous runs associated with a workflow #
# #
##########################################################################################
Cancel:
if: ${{ github.repository_owner == 'Armbian' }}
runs-on: small
steps:
- uses: n1hility/cancel-previous-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
##########################################################################################
# #
# Merge master into nighly image from which we build packages #
@ -16,6 +30,7 @@ jobs:
Merge:
name: Merging
needs: Cancel
if: ${{ github.repository_owner == 'Armbian' }}
uses: armbian/scripts/.github/workflows/merge-from-branch.yml@master