Jelajahi Sumber

update gpg info

Nattiden 2 tahun lalu
induk
melakukan
cc8b4dd47e
1 mengubah file dengan 10 tambahan dan 4 penghapusan
  1. 10 4
      .github/workflows/check_mcversion.yml

+ 10 - 4
.github/workflows/check_mcversion.yml

@@ -1,7 +1,7 @@
 name: Check Minecraft Version
 on:
    schedule:
-    - cron:  '0/20 * * * *'
+    - cron:  '0/30 * * * *'
    workflow_dispatch:
       
 jobs:
@@ -12,8 +12,14 @@ jobs:
          uses: actions/checkout@v4
        - name: 配置 Git 信息
          run: |
-            git config --local user.email "github-actions[bot]@users.noreply.github.com"
-            git config --local user.name "GitHub Actions"
+            git config --local user.email "[email protected]"
+            git config --local user.name "Hilda Bot"
+       - name: 配置 GPG 信息
+         uses: crazy-max/ghaction-import-gpg@v6
+         with:
+            gpg_private_key: ${{ secrets.BOT_GPG_PRIVATE_KEY }}
+            git_user_signingkey: true
+            git_commit_gpgsign: true
        - name: 配置 Python 环境
          uses: actions/setup-python@v4
          with:
@@ -27,6 +33,6 @@ jobs:
        - name: 提交更改
          run: |
             git add *
-            git diff-index --quiet HEAD || git commit -m "preloaded new version"
+            git diff-index --quiet HEAD || git commit -S -m "preloaded new version"
        - name: 推送更改
          run: git push