From 14b9b60ff25cf51010eb146004d000ae24f624c8 Mon Sep 17 00:00:00 2001 From: madomado Date: Wed, 22 Mar 2023 04:48:47 +0800 Subject: [PATCH] Update sync.yml (#303) Signed-off-by: madomado --- .github/workflows/sync.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 3c59a8caa6..ec47db5e55 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -11,21 +11,23 @@ jobs: if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: - - name: Setup Git + - name: Install SSH key run: | mkdir -p ${{ runner.temp }} echo "${{ secrets.SSH_SIGNING_KEY }}" > ${{ runner.temp }}/signing_key chmod 0700 ${{ runner.temp }}/signing_key - git config --global --add safe.directory "$GITHUB_WORKSPACE" - git config user.name "Raboneko" - git config user.email "raboneko@fyralabs.com" - git config gpg.format "ssh" - git config user.signingkey "${{ runner.temp }}/signing_key" - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 ssh-key: ${{ secrets.SSH_AUTHENTICATION_KEY }} + - name: Setup Git + run: | + git config --global --add safe.directory "$GITHUB_WORKSPACE" + git config user.name "Raboneko" + git config user.email "raboneko@fyralabs.com" + git config gpg.format "ssh" + git config user.signingkey "${{ runner.temp }}/signing_key" - name: Download patches run: | curl https://github.com/terrapkg/packages/pull/${{ github.event.pull_request.number }}.patch > pr.patch