From 2855a0773fc125f900182a10f3f8461de147d878 Mon Sep 17 00:00:00 2001 From: IkiWiki Date: Sun, 25 Aug 2024 19:16:06 -0400 Subject: [PATCH] forgejo-ci: use webfactory/ssh-agent for ssh logics --- .forgejo/workflows/push.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/push.yaml b/.forgejo/workflows/push.yaml index 8b64fd7..1e20250 100644 --- a/.forgejo/workflows/push.yaml +++ b/.forgejo/workflows/push.yaml @@ -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: