forgejo-ci: use webfactory/ssh-agent for ssh logics

This commit is contained in:
IkiWiki 2024-08-25 19:16:06 -04:00
parent 8290054feb
commit 2855a0773f
Signed by untrusted user who does not match committer: forge
GPG key ID: D62A472A4AA7D541

View file

@ -7,9 +7,10 @@ jobs:
steps:
- name: Environment setup
run: |
apk add git nodejs
mkdir -p ~/.ssh
echo ${{ secrets.PAGES_PRIVKEY }} > ~.ssh/id_ed25519
apk add git nodejs ssh-agent
- uses: https://github.com/webfactory/ssh-agent@v0.9.0
with:
ssh-private-key ${{ secrets.PAGES_PRIVKEY }}
- name: Repo pull
uses: actions/checkout@v4
with: