1616 types : [published]
1717 workflow_dispatch : {}
1818
19- permissions :
20- contents : write
21- pull-requests : write
19+ permissions : {}
2220
2321jobs :
2422 check :
2523 name : Check for stale skills
2624 runs-on : ubuntu-latest
25+ permissions :
26+ contents : write
27+ pull-requests : write
2728 steps :
2829 - name : Checkout
29- uses : actions/checkout@v4
30+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3031 with :
3132 fetch-depth : 0
33+ persist-credentials : false
3234
3335 - name : Setup Node
34- uses : actions/setup-node@v4
36+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
3537 with :
3638 node-version : 20
3739
@@ -108,15 +110,18 @@ jobs:
108110 if : steps.stale.outputs.has_stale == 'true'
109111 env :
110112 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
113+ PROMPT : ${{ steps.summary.outputs.prompt }}
114+ RELEASE_VERSION : ${{ github.event.release.tag_name || 'manual' }}
115+ SUMMARY : ${{ steps.summary.outputs.summary }}
111116 run : |
112- VERSION="${{ github.event.release.tag_name || 'manual' }} "
117+ VERSION="$RELEASE_VERSION "
113118 BRANCH="skills/review-${VERSION}"
114119
115120 git config user.name "github-actions[bot]"
116121 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
117122 git checkout -b "$BRANCH"
118123 git commit --allow-empty -m "chore: review stale skills for ${VERSION}"
119- git push origin "$BRANCH"
124+ git push "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "$BRANCH"
120125
121126 gh pr create \
122127 --title "Review stale skills (${VERSION})" \
@@ -125,7 +130,7 @@ jobs:
125130
126131 The following skills may need updates after the latest release:
127132
128- ${{ steps.summary.outputs.summary } }
133+ ${SUMMARY }
129134
130135 ---
131136
@@ -134,7 +139,7 @@ jobs:
134139 Paste this into your coding agent (Claude Code, Cursor, etc.):
135140
136141 ~~~
137- ${{ steps.summary.outputs.prompt } }
142+ ${PROMPT }
138143 ~~~
139144
140145 PREOF
0 commit comments