Skip to content

Commit 104ae06

Browse files
committed
use GH_WORKFLOW_PAT
1 parent 61ca045 commit 104ae06

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/update-submodules.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ jobs:
2828
fetch-depth: 0
2929
# Use SSH key authentication for submodules
3030
submodules: 'recursive'
31-
token: ${{ secrets.GITHUB_TOKEN }}
31+
token: ${{ secrets.GH_WORKFLOW_PAT }}
3232

3333
- name: Set up Git identity
3434
run: |
35-
git config --global user.name "GitHub Actions Bot"
36-
git config --global user.email "actions@github.com"
35+
git config --global user.name "jadit19"
36+
git config --global user.email "jadit19@gmail.com"
3737
3838
- name: Check for existing PR
3939
id: check_pr
4040
env:
41-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
GH_TOKEN: ${{ secrets.GH_WORKFLOW_PAT }}
4242
run: |
4343
PR_EXISTS=$(gh pr list --head ${{ env.PR_BRANCH }} --state open --json number | jq 'length')
4444
echo "pr_exists=$PR_EXISTS" >> $GITHUB_OUTPUT
@@ -100,7 +100,7 @@ jobs:
100100
- name: Create pull request
101101
if: steps.check_updates.outputs.has_changes == 'true' && steps.check_pr.outputs.pr_exists == '0'
102102
env:
103-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103+
GH_TOKEN: ${{ secrets.GH_WORKFLOW_PAT }}
104104
run: |
105105
CHANGES=$(cat submodule_changes.txt)
106106
PR_BODY="
@@ -120,7 +120,7 @@ jobs:
120120
- name: Update existing pull request
121121
if: steps.check_updates.outputs.has_changes == 'true' && steps.check_pr.outputs.pr_exists != '0'
122122
env:
123-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
123+
GH_TOKEN: ${{ secrets.GH_WORKFLOW_PAT }}
124124
run: |
125125
CHANGES=$(cat submodule_changes.txt)
126126
PR_BODY="

0 commit comments

Comments
 (0)