Skip to content

Commit 30aa073

Browse files
committed
🔐 Add DEPLOY_TOKEN for mas tap PR creation
1 parent 0578f0c commit 30aa073

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ jobs:
135135
runs-on: macos-14
136136
needs: [start, prepare-release]
137137
steps:
138-
- uses: actions/checkout@v4
138+
- name: 📺 Checkout mas repo
139+
uses: actions/checkout@v4
139140
with:
140141
# A fetch-depth of 0 includes all history and tags for script/version
141142
fetch-depth: 0
@@ -145,9 +146,19 @@ jobs:
145146
run: |
146147
script/bootstrap -f
147148
149+
- name: 🔧 Configure Git Credentials
150+
run: |
151+
git config user.name 'github-actions[bot]'
152+
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
153+
154+
- name: 🚰 Checkout mas tap
155+
uses: actions/checkout@v4
156+
with:
157+
ref: ${{ needs.start.outputs.release_branch }}
158+
148159
- name: ⤴️ Open mas tap PR
149160
env:
150-
GH_TOKEN: ${{ github.token }}
161+
GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
151162
DRY_RUN: ${{ needs.start.outputs.dry_run }}
152163
RELEASE_BRANCH: ${{ needs.start.outputs.release_branch }}
153164
MAS_VERSION: ${{ needs.start.outputs.mas_version }}
@@ -164,7 +175,9 @@ jobs:
164175
git add Formula/mas.rb
165176
git commit --message="🔖 Version ${MAS_VERSION}"
166177
167-
git push --set-upstream origin "${RELEASE_BRANCH}"
178+
git push \
179+
--set-upstream origin "${RELEASE_BRANCH}"
180+
168181
gh pr create \
169182
--assignee phatblat \
170183
--base main \

0 commit comments

Comments
 (0)