From 01507f88daa2cd87ba69a0890413605d7e0cc080 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Thu, 19 Dec 2024 18:08:43 -0700 Subject: [PATCH] ci: Corrected the use of the SSH key for pushing to the repo [skip ci] --- .github/workflows/test-publish-scoop-bucket.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-publish-scoop-bucket.yml b/.github/workflows/test-publish-scoop-bucket.yml index f6c3768..6b0056d 100644 --- a/.github/workflows/test-publish-scoop-bucket.yml +++ b/.github/workflows/test-publish-scoop-bucket.yml @@ -12,9 +12,17 @@ jobs: name: Publish Scoop Bucket runs-on: windows-latest steps: + - name: Configure SSH for Git + run: | + mkdir -p ~/.ssh + echo "${{ secrets.RELEASE_BOT_SSH_KEY }}" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + ssh-keyscan -H github.com >> ~/.ssh/known_hosts + - name: Checkout repository uses: actions/checkout@v4 with: + ssh-key: ${{ secrets.RELEASE_BOT_SSH_KEY }} fetch-depth: 1 - name: Set release assets and version @@ -55,7 +63,7 @@ jobs: git config user.email "github-actions[bot]@users.noreply.github.com" git add ./deployment/scoop/managarr.json git commit -m "chore: Update Scoop bucket for version ${{ env.RELEASE_VERSION }} [skip ci]" - git push origin main + git push origin - name: Publish the updated bucket shell: pwsh