Skip to content

Commit e94fbd8

Browse files
committed
ci(actions/clean-up-caches): add action to clean caches
1 parent 2e9cf2d commit e94fbd8

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Clean Up Caches (Debug)
2+
3+
on:
4+
push:
5+
branches:
6+
- infra/actions/denoize
7+
8+
jobs:
9+
run-procedure:
10+
name: Run Clean Up Caches Procedure
11+
uses: ./.github/workflows/fn-clean-up-caches.yml
12+
with:
13+
cache-key-base: clean-up-caches@v1
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Clean Up Caches Procedure
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
cache-key-base:
7+
description: A string used to differentiate from other slices of the cache for other workflow runs, and to forcefully bust the cache when renamed
8+
type: string
9+
required: true
10+
token:
11+
description: The auth token to use
12+
type: string
13+
required: false
14+
default: ${{ github.token }}
15+
16+
jobs:
17+
main:
18+
name: Main
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v5
23+
24+
- name: Set up Deno
25+
uses: denoland/setup-deno@v2
26+
with:
27+
deno-version: 2.x
28+
cache-hash: ${{ inputs.cache-key-base }}-${{ hashFiles('deno.lock') }}
29+
30+
- name: Install dependencies
31+
run: deno install
32+
33+
- name: Run main script
34+
run: deno run -P=ci @encode/clean-up-caches

0 commit comments

Comments
 (0)