From d9713eb1ed2c3b48b3e281f309620ae1cbe3144e Mon Sep 17 00:00:00 2001 From: Lleyton Gray Date: Thu, 4 Apr 2024 15:24:32 -0700 Subject: [PATCH] fix: reset author and sign during backport --- .backportrc.json | 1 + .github/workflows/sync.yml | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/.backportrc.json b/.backportrc.json index db209de85f..1a999fa4f8 100644 --- a/.backportrc.json +++ b/.backportrc.json @@ -1,6 +1,7 @@ { "repoOwner": "terrapkg", "repoName": "packages", + "resetAuthor": true, "targetBranchChoices": ["f38", "f39", "f40", "frawhide"], "branchLabelMapping": { "^sync-(.+)$": "$1" diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index dae5af60c0..3fdf3b0a07 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -10,6 +10,18 @@ jobs: runs-on: ubuntu-latest if: github.event.pull_request.merged steps: + - name: Install SSH signing key + run: | + mkdir -p ${{ runner.temp }} + echo "${{ secrets.SSH_SIGNING_KEY }}" > ${{ runner.temp }}/signing_key + chmod 0700 ${{ runner.temp }}/signing_key + + - name: Setup Raboneko Signing + run: | + git config --global gpg.format "ssh" + git config --global user.signingkey "${{ runner.temp }}/signing_key" + git config --global commit.gpgsign true + - name: Backport Action uses: sorenlouv/backport-github-action@v9.3.0 with: