forked from 0LNetworkCommunity/libra-framework
-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (29 loc) · 951 Bytes
/
nuke-ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: nuke the CI
on:
push:
tags:
- "nuke-ci*"
jobs:
delete_all_runs:
name: delete all workflow runs
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 0 #${{ github.event.inputs.days }}
keep_minimum_runs: 0 # ${{ github.event.inputs.minimum_runs }}
# delete_workflow_pattern: ${{ github.event.inputs.delete_workflow_pattern }}
# delete_workflow_by_state_pattern: disabled_manually
# delete_run_by_conclusion_pattern: ${{ github.event.inputs.delete_run_by_conclusion_pattern }}
# dry_run: true
wipe_caches:
name: delete all caches
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: clear caches
uses: easimon/wipe-cache@main