Skip to content

一分钟搭建影视站,支持Docker等部署方式

Configure Git to disable email notifications in sync workflow

developer1bf556bb5cea
diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml
index 645e5bc..a8ca09e 100644
--- a/.github/workflows/sync.yml
+++ b/.github/workflows/sync.yml
@@ -29,6 +29,13 @@ jobs:
# 设置 token 以防止触发其他工作流
token: ${{ secrets.GITHUB_TOKEN }}
+ # Configure Git to disable email notifications
+ - name: Configure Git
+ run: |
+ git config --global user.name "github-actions[bot]"
+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
+ git config --global --add notifications.enabled false
+
# Step 2: run the sync action
- name: Sync upstream changes
id: sync