Remove workflow cancellation when generating images (#4547)

* Remove workflow cancellation 

We should be able to run multiple images build jobs at once.

* Leave 32 releases
This commit is contained in:
Igor Pečovnik 2022-12-09 11:06:18 +01:00 committed by GitHub
parent a438c08aaa
commit 1568618954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,31 +62,17 @@ env:
jobs:
Cancel:
name: "Cancel currently active"
if: ${{ github.repository_owner == 'Armbian' && github.event.schedule == '' }}
runs-on: small
timeout-minutes: 3
steps:
- uses: styfle/cancel-workflow-action@0.11.0
if: ${{ github.event.schedule == '' }}
with:
all_but_latest: true
access_token: ${{ secrets.GITHUB_TOKEN }}
clean:
if: ${{ github.repository_owner == 'Armbian' }}
name: Purge older releases
needs: [ Cancel ]
runs-on: [ubuntu-latest]
steps:
- name: Purge old releases of trunk build
uses: Vucko130/delete-older-releases@v0.2.1
with:
keep_latest: 7
keep_latest: 32
delete_tag_pattern: trunk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}