Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 3f94da1

Browse files
committed
ci: add ability to run cleanup on demand
Signed-off-by: Chris Privitere <[email protected]>
1 parent a0cdaab commit 3f94da1

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/cleanup.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ name: Cleanup
22
on:
33
schedule:
44
- cron: "0 */2 * * *" # TODO: Run every 4 hours to soak test, should be less frequent before merge (weekly/daily/???)
5+
workflow_dispatch:
56
jobs:
67
cleanup:
78
name: Cleanup any orphaned CI Resources
89
runs-on: ubuntu-latest
910
steps:
10-
- name: checkout
11-
uses: actions/checkout@v4
12-
- uses: actions/setup-go@v5
13-
with:
14-
go-version-file: './go.mod'
15-
- name: Run the cleanup tool
16-
run: go run ./cmd/ci-clean
17-
env:
18-
PACKET_API_KEY: ${{ secrets.PACKET_API_TOKEN }}
19-
PROJECT_ID: ${{ secrets.PROJECT_ID }}
11+
- name: checkout
12+
uses: actions/checkout@v4
13+
- uses: actions/setup-go@v5
14+
with:
15+
go-version-file: "./go.mod"
16+
- name: Run the cleanup tool
17+
run: go run ./cmd/ci-clean
18+
env:
19+
PACKET_API_KEY: ${{ secrets.PACKET_API_TOKEN }}
20+
PROJECT_ID: ${{ secrets.PROJECT_ID }}

0 commit comments

Comments
 (0)