@@ -28,17 +28,17 @@ jobs:
28
28
fetch-depth : 0
29
29
# Use SSH key authentication for submodules
30
30
submodules : ' recursive'
31
- token : ${{ secrets.GITHUB_TOKEN }}
31
+ token : ${{ secrets.GH_WORKFLOW_PAT }}
32
32
33
33
- name : Set up Git identity
34
34
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"
37
37
38
38
- name : Check for existing PR
39
39
id : check_pr
40
40
env :
41
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
+ GH_TOKEN : ${{ secrets.GH_WORKFLOW_PAT }}
42
42
run : |
43
43
PR_EXISTS=$(gh pr list --head ${{ env.PR_BRANCH }} --state open --json number | jq 'length')
44
44
echo "pr_exists=$PR_EXISTS" >> $GITHUB_OUTPUT
@@ -100,7 +100,7 @@ jobs:
100
100
- name : Create pull request
101
101
if : steps.check_updates.outputs.has_changes == 'true' && steps.check_pr.outputs.pr_exists == '0'
102
102
env :
103
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
103
+ GH_TOKEN : ${{ secrets.GH_WORKFLOW_PAT }}
104
104
run : |
105
105
CHANGES=$(cat submodule_changes.txt)
106
106
PR_BODY="
@@ -120,7 +120,7 @@ jobs:
120
120
- name : Update existing pull request
121
121
if : steps.check_updates.outputs.has_changes == 'true' && steps.check_pr.outputs.pr_exists != '0'
122
122
env :
123
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
123
+ GH_TOKEN : ${{ secrets.GH_WORKFLOW_PAT }}
124
124
run : |
125
125
CHANGES=$(cat submodule_changes.txt)
126
126
PR_BODY="
0 commit comments