From bb5e071d0db9c42241613943acd6f10743227ec5 Mon Sep 17 00:00:00 2001 From: bocchi810 Date: Sat, 13 Dec 2025 13:56:37 +0800 Subject: [PATCH] Update actions --- .github/workflows/sendGFWList.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sendGFWList.yml b/.github/workflows/sendGFWList.yml index f2cbfae..7493282 100644 --- a/.github/workflows/sendGFWList.yml +++ b/.github/workflows/sendGFWList.yml @@ -46,9 +46,31 @@ 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_user_name: ${{ steps.import-gpg-bocchi810.outputs.name }} + commit_user_email: ${{ 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