Skip to content

Commit 890cea0

Browse files
committed
fix: reset author and sign during backport (#1069)
(cherry picked from commit 6cd2915) # Conflicts: # .backportrc.json
1 parent 34d6a0d commit 890cea0

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.backportrc.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"repoOwner": "terrapkg",
3+
"repoName": "packages",
4+
"resetAuthor": true,
5+
"targetBranchChoices": ["f38", "f39", "f40", "frawhide"],
6+
"branchLabelMapping": {
7+
"^sync-(.+)$": "$1"
8+
}
9+
}

.github/workflows/sync.yml

+12
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ jobs:
99
name: Backport/sync PR
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: Install SSH signing key
13+
run: |
14+
mkdir -p ${{ runner.temp }}
15+
echo "${{ secrets.SSH_SIGNING_KEY }}" > ${{ runner.temp }}/signing_key
16+
chmod 0700 ${{ runner.temp }}/signing_key
17+
18+
- name: Setup Raboneko Signing
19+
run: |
20+
git config --global gpg.format "ssh"
21+
git config --global user.signingkey "${{ runner.temp }}/signing_key"
22+
git config --global commit.gpgsign true
23+
1224
- name: Backport Action
1325
uses: sorenlouv/[email protected]
1426
with:

0 commit comments

Comments
 (0)