File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3131 with :
3232 fetch-depth : 0
33- persist-credentials : false
33+ persist-credentials : true # review job pushes a generated branch
3434
3535 - name : Setup Node
3636 uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
@@ -121,28 +121,22 @@ jobs:
121121 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
122122 git checkout -b "$BRANCH"
123123 git commit --allow-empty -m "chore: review stale skills for ${VERSION}"
124- git push "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "$BRANCH"
124+ git push origin "$BRANCH"
125+
126+ {
127+ printf '%s\n\n' '## Stale Skills Detected'
128+ printf '%s\n\n' 'The following skills may need updates after the latest release:'
129+ printf '%s\n\n' "$SUMMARY"
130+ printf '%s\n\n' '---'
131+ printf '%s\n\n' '### Update Prompt'
132+ printf '%s\n\n' 'Paste this into your coding agent (Claude Code, Cursor, etc.):'
133+ printf '%s\n' '~~~'
134+ printf '%s\n' "$PROMPT"
135+ printf '%s\n' '~~~'
136+ } > pr-body.md
125137
126138 gh pr create \
127139 --title "Review stale skills (${VERSION})" \
128- --body "$(cat <<'PREOF'
129- ## Stale Skills Detected
130-
131- The following skills may need updates after the latest release:
132-
133- ${SUMMARY}
134-
135- ---
136-
137- ### Update Prompt
138-
139- Paste this into your coding agent (Claude Code, Cursor, etc.):
140-
141- ~~~
142- ${PROMPT}
143- ~~~
144-
145- PREOF
146- )" \
140+ --body-file pr-body.md \
147141 --head "$BRANCH" \
148142 --base main
You can’t perform that action at this time.
0 commit comments