From 412988bba3c6b91425c1b1225910b3b8b1efe24b Mon Sep 17 00:00:00 2001 From: bocchi810 Date: Sat, 13 Dec 2025 13:52:17 +0800 Subject: [PATCH] Update actions --- .github/workflows/sendGFWList.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sendGFWList.yml b/.github/workflows/sendGFWList.yml index f2cbfae..075c990 100644 --- a/.github/workflows/sendGFWList.yml +++ b/.github/workflows/sendGFWList.yml @@ -46,9 +46,29 @@ jobs: run: | openssl base64 -in list.txt | tr -d '\r' > gfwlist.txt + - name: Set up GPG keys (bocchi810) + if: github.actor == 'bocchi810' + id: import-gpg-bocchi810 + uses: crazy-max/ghaction-import-gpg@v6 + with: + gpg_private_key: ${{ secrets.GPG_KEY_BOCCHI810 }} + passphrase: ${{ secrets.GPG_PASS_BOCCHI810 }} + git_user_signingkey: true + git_commit_gpgsign: true + + - name: save local changes to git & svn (bocchi810) + if: github.actor == 'bocchi810' + id: auto-commit-action-bocchi810 + uses: stefanzweifel/git-auto-commit-action@v7 + with: + commit_author: "${{ steps.import-gpg-bocchi810.outputs.name }} <${{ steps.import-gpg-bocchi810.outputs.email }}>" + commit_message: gfwlist edited ${{ env.DATE }} + file_pattern: 'gfwlist.txt' + - name: save local changes to git & svn + if: github.actor != 'bocchi810' id: auto-commit-action uses: stefanzweifel/git-auto-commit-action@v7 with: commit_message: gfwlist edited ${{ env.DATE }} - file_pattern: 'gfwlist.txt' + file_pattern: 'gfwlist.txt' \ No newline at end of file