Skip to content

Commit 400bb80

Browse files
justin808claude
andcommitted
Fix YAML syntax error in stop-run-skipped-ci workflow
Replace template literals with array.join() to avoid YAML multiline key parsing issues. This fixes the knip CI failure. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 6fc849c commit 400bb80

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

.github/workflows/stop-run-skipped-ci.yml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,36 +75,50 @@ jobs:
7575
console.log('✅ Removed full-ci label from PR');
7676
7777
// Post success comment
78+
const successBody = [
79+
'✅ **Full CI Mode Disabled**',
80+
'',
81+
'The `full-ci` label has been removed. Future commits will use the standard CI suite (skipping tests for unchanged code).',
82+
'',
83+
'To re-enable full CI mode, use the `/run-skipped-ci` command.'
84+
].join('\n');
85+
7886
await github.rest.issues.createComment({
7987
owner: context.repo.owner,
8088
repo: context.repo.repo,
8189
issue_number: context.issue.number,
82-
body: `✅ **Full CI Mode Disabled**
83-
84-
The \`full-ci\` label has been removed. Future commits will use the standard CI suite (skipping tests for unchanged code).
85-
86-
To re-enable full CI mode, use the \`/run-skipped-ci\` command.`
90+
body: successBody
8791
});
8892
} catch (error) {
8993
if (error.status === 404) {
9094
console.log('ℹ️ Label not found - already removed or never added');
95+
96+
const notFoundBody = [
97+
'ℹ️ **Full CI Mode Already Disabled**',
98+
'',
99+
'The `full-ci` label is not present on this PR. CI is already running in standard mode.'
100+
].join('\n');
101+
91102
await github.rest.issues.createComment({
92103
owner: context.repo.owner,
93104
repo: context.repo.repo,
94105
issue_number: context.issue.number,
95-
body: `ℹ️ **Full CI Mode Already Disabled**
96-
97-
The \`full-ci\` label is not present on this PR. CI is already running in standard mode.`
106+
body: notFoundBody
98107
});
99108
} else {
100109
console.error('❌ Failed to remove label:', error);
110+
111+
const errorBody = [
112+
'❌ **Error Removing Label**',
113+
'',
114+
'Failed to remove the `full-ci` label: ' + error.message
115+
].join('\n');
116+
101117
await github.rest.issues.createComment({
102118
owner: context.repo.owner,
103119
repo: context.repo.repo,
104120
issue_number: context.issue.number,
105-
body: `❌ **Error Removing Label**
106-
107-
Failed to remove the \`full-ci\` label: ${error.message}`
121+
body: errorBody
108122
});
109123
throw error;
110124
}

0 commit comments

Comments
 (0)