Test with local action

This commit is contained in:
Colin McDonnell
2026-01-27 19:06:17 +00:00
committed by pullfrog[bot]
parent 2514bb1cf7
commit 6bd4097992
2 changed files with 27 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
name: "Check GitHub Token"
description: "Check if GITHUB_TOKEN environment variable exists"
author: "Pullfrog"
runs:
using: "node24"
main: "entry.ts"
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env node
/**
* simple check that GITHUB_TOKEN env var exists
*/
import * as core from "@actions/core";
async function run(): Promise<void> {
const token = process.env.GITHUB_TOKEN;
if (token) {
core.info(`GITHUB_TOKEN exists`);
core.info(`token prefix: ${token.substring(0, 10)}...`);
} else {
core.setFailed("GITHUB_TOKEN does not exist");
}
}
await run();