Skip to content

Commit 4f6e85a

Browse files
committed
ci(actions/clean-up-caches): pass in token as env var
1 parent f107b65 commit 4f6e85a

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

‎.github/workflows/fn-clean-up-caches.yml‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ on:
77
description: A string used to differentiate from other slices of the cache for other workflow runs, and to forcefully bust the cache when renamed
88
type: string
99
required: true
10-
token:
11-
description: The auth token to use
12-
type: string
13-
required: false
14-
default: ${{ github.token }}
1510

1611
jobs:
1712
main:
@@ -32,3 +27,5 @@ jobs:
3227

3328
- name: Run main script
3429
run: deno run -P=ci.clean-up-caches @encode/clean-up-caches
30+
env:
31+
TOKEN: ${{ github.token }}

‎scripts/clean-up-caches/main.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { context, getOctokit } from '@actions/github';
22
import { assertExists } from '@std/assert';
33

44
export async function main(): Promise<void> {
5-
const token = Deno.env.get('GITHUB_TOKEN');
5+
const token = Deno.env.get('TOKEN');
66
assertExists(token);
77

88
const github = getOctokit(token);

0 commit comments

Comments
 (0)