Delete workflow #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Delete workflow | |
on: | |
repository_dispatch: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
# 自动取消其他运行中的workflow | |
cancel-in-progress: true | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
outputs: | |
OPENWRTROOT: ${{ steps.update.outputs.OPENWRTROOT }} | |
PLATFORM: ${{ steps.compile.outputs.PLATFORM }} | |
TARGET: ${{ steps.compile.outputs.TARGET }} | |
SUBTARGET: ${{ steps.compile.outputs.SUBTARGET }} | |
FIRMWARE: ${{ steps.compile.outputs.FIRMWARE }} | |
GENERATE_STATUS: ${{ steps.generate.outputs.GENERATE_STATUS }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Delete workflow runs | |
uses: Mattraks/delete-workflow-runs@v2 | |
with: | |
retain_days: 0 | |
keep_minimum_runs: 0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Delete Artifacts | |
uses: geekyeggo/delete-artifact@v5 | |
with: | |
name: | | |
bin-archive |