Skip to content

Commit f107b65

Browse files
committed
ci(@encode/clean-up-caches): use Deno env instead of GitHub inputs
1 parent 0c4ef0e commit f107b65

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
import { getInput } from '@actions/core';
21
import { context, getOctokit } from '@actions/github';
2+
import { assertExists } from '@std/assert';
33

44
export async function main(): Promise<void> {
5-
const github = getOctokit(getInput('token', { required: true }));
5+
const token = Deno.env.get('GITHUB_TOKEN');
6+
assertExists(token);
7+
8+
const github = getOctokit(token);
69
const actions = github.rest.actions;
710

811
const {

0 commit comments

Comments
 (0)