diff --git a/.github/workflows/build-train.yml b/.github/workflows/build-train.yml index d4361b3b6c..77de1d1099 100644 --- a/.github/workflows/build-train.yml +++ b/.github/workflows/build-train.yml @@ -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