Account-Scheduler: Fix Commit Push permission for forked repos
Forked Projects, by default, can't edit their own forked repos, as the actions token assigned doesn't have sufficient permissions. Using the permission flag grants it the required permission.
This commit is contained in:
parent
01c2d38632
commit
717d0e0cc1
|
|
@ -9,6 +9,7 @@ on:
|
|||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
permissions: write-all
|
||||
steps:
|
||||
- name: Checkouts
|
||||
uses: actions/checkout@v2
|
||||
|
|
@ -26,4 +27,4 @@ jobs:
|
|||
git commit -m "KeepALive As of \"${DATE}\""
|
||||
git remote add origin https://"{USERNAME}":"${GITHUB_TOKEN}"@"${REPO_BASE}"
|
||||
git checkout -b keepalive
|
||||
git push --set-upstream origin keepalive -f
|
||||
git push --set-upstream origin keepalive -f
|
||||
|
|
|
|||
Loading…
Reference in New Issue