forgejo: use git credentials to feed env variables of user and pass
All checks were successful
/ render (push) Successful in 34s

This commit is contained in:
IkiWiki 2024-08-25 20:08:46 -04:00
parent ab95a26b68
commit 8cc3e20fa3
Signed by untrusted user who does not match committer: forge
GPG key ID: D62A472A4AA7D541

View file

@ -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