forgejo: use git credentials to feed env variables of user and pass
All checks were successful
/ render (push) Successful in 34s
All checks were successful
/ render (push) Successful in 34s
This commit is contained in:
parent
ab95a26b68
commit
8cc3e20fa3
1 changed files with 3 additions and 2 deletions
|
@ -6,7 +6,8 @@ jobs:
|
|||
container:
|
||||
image: alpine:latest
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.PAGES_TOKEN }}
|
||||
GIT_USER: ayakael
|
||||
GIT_PASS: ${{ secrets.PAGES_TOKEN }}
|
||||
steps:
|
||||
- name: Environment setup
|
||||
run: |
|
||||
|
@ -30,7 +31,7 @@ jobs:
|
|||
# Note: the following account information will not work on GHES
|
||||
git config user.name "forgejo-actions[bot]"
|
||||
git config user.email "dev@ayakael.net"
|
||||
git config user.password $GH_TOKEN
|
||||
git config credential.helper "!f() { echo \"username=${GIT_USER}\\npassword=${GIT_PASS}\"; }; f"
|
||||
git add .
|
||||
git commit -m "Update"
|
||||
git push
|
||||
|
|
Loading…
Reference in a new issue