Skip to content

Commit

Permalink
ci(sync): add contents write permission
Browse files Browse the repository at this point in the history
  • Loading branch information
es3n1n committed Aug 14, 2023
1 parent b73cb92 commit fb8792f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
on:
workflow_dispatch:

permissions:
contents: write

jobs:
sync:
name: 'Submodules Sync'
Expand All @@ -26,5 +29,4 @@ jobs:
run: |
git config --global user.name 'CI'
git config --global user.email '[email protected]'
git remote set-url origin https://x-access-token:${{ secrets.CI_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Auto updated submodules" && git push || echo "No changes to commit"

0 comments on commit fb8792f

Please sign in to comment.