Skip to content

Commit 1879108

Browse files
authored
Simplify token usage for submodule updates
Removed the option to use a Personal Access Token for submodule updates and simplified the token usage to only GITHUB_TOKEN.
1 parent 4df9bb7 commit 1879108

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

.github/workflows/update-submodules.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ jobs:
2222
uses: actions/checkout@v4
2323
with:
2424
submodules: false
25-
# SUBMODULE_UPDATE_PAT: a Personal Access Token (repo + workflow scopes)
26-
# stored as a repository secret. Without it the GITHUB_TOKEN is used,
27-
# but pushes made by GITHUB_TOKEN do NOT trigger CI workflows on the
28-
# resulting PR. Create a PAT at Settings → Developer settings →
29-
# Personal access tokens and add it at Settings → Secrets → Actions.
30-
token: ${{ secrets.SUBMODULE_UPDATE_PAT || secrets.GITHUB_TOKEN }}
3125

3226
- name: Update every submodule to remote HEAD
3327
id: update
@@ -46,7 +40,7 @@ jobs:
4640
if: steps.update.outputs.changed == 'true'
4741
uses: peter-evans/create-pull-request@v7
4842
with:
49-
token: ${{ secrets.SUBMODULE_UPDATE_PAT || secrets.GITHUB_TOKEN }}
43+
token: ${{ secrets.GITHUB_TOKEN }}
5044
commit-message: "chore: update submodules to latest HEAD"
5145
branch: chore/update-submodules
5246
delete-branch: true

0 commit comments

Comments
 (0)