Cancels previous runs associated with a workflow (#3426)
This commit is contained in:
parent
deda43aca8
commit
821a2e557d
15
.github/workflows/build-train.yml
vendored
15
.github/workflows/build-train.yml
vendored
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user