mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-22 22:44:13 +08:00
clarify workflow validation message (#463)
Update the workflow validation message to be more specific about when Claude Code workflows will start working, providing clearer guidance to users experiencing this validation error. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -42,17 +42,14 @@ async function exchangeForAppToken(oidcToken: string): Promise<string> {
|
|||||||
// Check for specific workflow validation error codes that should skip the action
|
// Check for specific workflow validation error codes that should skip the action
|
||||||
const errorCode = responseJson.error?.details?.error_code;
|
const errorCode = responseJson.error?.details?.error_code;
|
||||||
|
|
||||||
if (
|
if (errorCode === "workflow_not_found_on_default_branch") {
|
||||||
errorCode === "workflow_not_found_on_default_branch" ||
|
|
||||||
errorCode === "workflow_content_mismatch"
|
|
||||||
) {
|
|
||||||
const message =
|
const message =
|
||||||
responseJson.message ??
|
responseJson.message ??
|
||||||
responseJson.error?.message ??
|
responseJson.error?.message ??
|
||||||
"Workflow validation failed";
|
"Workflow validation failed";
|
||||||
core.warning(`Skipping action due to workflow validation: ${message}`);
|
core.warning(`Skipping action due to workflow validation: ${message}`);
|
||||||
console.log(
|
console.log(
|
||||||
"Action skipped due to workflow validation error. This is expected when adding Claude Code workflows to new repositories or on PRs with workflow changes.",
|
"Action skipped due to workflow validation error. This is expected when adding Claude Code workflows to new repositories or on PRs with workflow changes. If you're seeing this, your workflow will begin working once you merge your PR.",
|
||||||
);
|
);
|
||||||
core.setOutput("skipped_due_to_workflow_validation_mismatch", "true");
|
core.setOutput("skipped_due_to_workflow_validation_mismatch", "true");
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user