Skip to content

Commit 2efd231

Browse files
committed
Add signing
1 parent 058fb51 commit 2efd231

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,22 @@ jobs:
44
build:
55
runs-on: ubuntu-latest
66
steps:
7+
- name: Import GPG key
8+
id: import-gpg
9+
uses: crazy-max/ghaction-import-gpg@v4
10+
with:
11+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
12+
passphrase: ${{ secrets.PASSPHRASE }}
13+
git_user_signingkey: true
14+
git_commit_gpgsign: true
15+
# TODO: Move this to the python script?
16+
- name: Sign commit and push changes
17+
run: |
18+
git config --global user.email "${{ steps.import-gpg.outputs.email }}"
19+
git config --global user.name "${{ steps.import-gpg.outputs.name }}"
720
- uses: actions/checkout@main
821
- name: Self test
922
id: selftest
10-
11-
# Put your action repo here
1223
uses: Scientific-Python-Translations/content-sync@main
1324
env:
1425
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -19,7 +30,6 @@ jobs:
1930
translations-repo: "Scientific-Python-Translations/pandas-translations"
2031
translations-folder: "pandas-translations/content/en/"
2132
translations-ref: "main"
22-
2333
- name: Check outputs
2434
run: |
2535
test "${{ steps.selftest.outputs.todo }}" == "Hello world"

0 commit comments

Comments
 (0)