chore: simplify action config

This commit is contained in:
Mark Wylde
2025-05-31 09:03:12 +01:00
parent fb6df649ed
commit 9714bd59a5
8 changed files with 26 additions and 32 deletions
+2 -2
View File
@@ -23,11 +23,11 @@ export async function setupGitHubToken(): Promise<string> {
}
throw new Error(
"No GitHub token available. Please provide a github_token input or ensure GITHUB_TOKEN is available in the workflow environment.",
"No GitHub token available. Please provide a gitea_token input or ensure GITHUB_TOKEN is available in the workflow environment.",
);
} catch (error) {
core.setFailed(
`Failed to setup GitHub token: ${error}.\n\nPlease provide a \`github_token\` in the \`with\` section of the action in your workflow yml file, or ensure the workflow has access to the default GITHUB_TOKEN.`,
`Failed to setup GitHub token: ${error}.\n\nPlease provide a \`gitea_token\` in the \`with\` section of the action in your workflow yml file, or ensure the workflow has access to the default GITHUB_TOKEN.`,
);
process.exit(1);
}