Skip to content

Commit 894b72a

Browse files
fix(ci): use github PATs for automated commits
When using PATs, protected branch steps can be bypassed
1 parent f3e8299 commit 894b72a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/update-badges.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v2 # clones your repo, make sure the ssh secret is set!
1717
with:
1818
ref: ${{ github.head_ref }}
19-
token: ${{ secrets.GITHUB_TOKEN }}
19+
token: ${{ secrets.GH_PAT }}
2020

2121
- uses: joblo2213/[email protected]
2222
with:
@@ -35,5 +35,4 @@ jobs:
3535
name: Push changes # Step that pushes these local changes back to your github repo
3636
with:
3737
commit_message: 'docs: Update badges [skip ci]'
38-
push_options: '--force'
3938
file_pattern: README.md

0 commit comments

Comments
 (0)