Skip to content

Commit d03269b

Browse files
authored
Change PAT on workflow (#208)
1 parent 76e35d6 commit d03269b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/publish-packages.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ jobs:
179179
- name: Commit and push pubspec.yaml changes for reown_sign
180180
if: github.event.inputs.sign == 'true' && github.event.inputs.core == 'true' && needs.publish-core.outputs.package_version != ''
181181
env:
182-
GITHUB_TOKEN: ${{ secrets.REOWN_FLUTTER_RELEASE_PAT }}
182+
REOWN_FLUTTER_RELEASE_PAT: ${{ secrets.REOWN_FLUTTER_RELEASE_PAT }}
183183
run: |
184184
git config --global user.name 'github-actions[bot]'
185185
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
@@ -188,7 +188,7 @@ jobs:
188188
if [[ -n $(git status -s pubspec.yaml) ]]; then
189189
git add pubspec.yaml
190190
git commit -m "ci(reown_sign): Update reown_core to ^${{ needs.publish-core.outputs.package_version }} [skip ci]"
191-
git push
191+
git push https://x-access-token:${REOWN_FLUTTER_RELEASE_PAT}@github.com/${{ github.repository }}
192192
else
193193
echo "No changes to commit in reown_sign/pubspec.yaml"
194194
fi
@@ -297,7 +297,7 @@ jobs:
297297
- name: Commit and push pubspec.yaml changes for reown_appkit
298298
if: github.event.inputs.appkit == 'true' && ((github.event.inputs.core == 'true' && needs.publish-core.outputs.package_version != '') || (github.event.inputs.sign == 'true' && needs.publish-sign.outputs.package_version != ''))
299299
env:
300-
GITHUB_TOKEN: ${{ secrets.REOWN_FLUTTER_RELEASE_PAT }}
300+
REOWN_FLUTTER_RELEASE_PAT: ${{ secrets.REOWN_FLUTTER_RELEASE_PAT }}
301301
run: |
302302
git config --global user.name 'github-actions[bot]'
303303
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
@@ -306,7 +306,7 @@ jobs:
306306
if [[ -n $(git status -s pubspec.yaml) ]]; then
307307
git add pubspec.yaml
308308
git commit -m "ci(reown_appkit): Update core/sign dependencies [skip ci]"
309-
git push
309+
git push https://x-access-token:${REOWN_FLUTTER_RELEASE_PAT}@github.com/${{ github.repository }}
310310
else
311311
echo "No changes to commit in reown_appkit/pubspec.yaml"
312312
fi
@@ -412,7 +412,7 @@ jobs:
412412
- name: Commit and push pubspec.yaml changes for reown_walletkit
413413
if: github.event.inputs.walletkit == 'true' && ((github.event.inputs.core == 'true' && needs.publish-core.outputs.package_version != '') || (github.event.inputs.sign == 'true' && needs.publish-sign.outputs.package_version != '') || (github.event.inputs.yttrium == 'true' && needs.publish-yttrium.outputs.package_version != ''))
414414
env:
415-
GITHUB_TOKEN: ${{ secrets.REOWN_FLUTTER_RELEASE_PAT }}
415+
REOWN_FLUTTER_RELEASE_PAT: ${{ secrets.REOWN_FLUTTER_RELEASE_PAT }}
416416
run: |
417417
git config --global user.name 'github-actions[bot]'
418418
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
@@ -421,7 +421,7 @@ jobs:
421421
if [[ -n $(git status -s pubspec.yaml) ]]; then
422422
git add pubspec.yaml
423423
git commit -m "ci(reown_walletkit): Update core/sign/yttrium dependencies [skip ci]"
424-
git push
424+
git push https://x-access-token:${REOWN_FLUTTER_RELEASE_PAT}@github.com/${{ github.repository }}
425425
else
426426
echo "No changes to commit in reown_walletkit/pubspec.yaml"
427427
fi

0 commit comments

Comments
 (0)