一分钟搭建影视站,支持Docker等部署方式
Update GitHub Actions sync workflow: standardize commit author information
developer11d2650c4d7e
diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.ymlindex 69b625a..645e5bc 100644--- a/.github/workflows/sync.yml+++ b/.github/workflows/sync.yml@@ -13,11 +13,21 @@ jobs:name: Sync latest commits from upstream reporuns-on: ubuntu-latestif: ${{ github.event.repository.fork }}++ # 添加全局环境变量,确保所有Git操作使用相同的身份+ env:+ GIT_AUTHOR_NAME: github-actions[bot]+ GIT_AUTHOR_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com+ GIT_COMMITTER_NAME: github-actions[bot]+ GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.comsteps:# Step 1: run a standard checkout action- name: Checkout target repouses: actions/checkout@v3+ with:+ # 设置 token 以防止触发其他工作流+ token: ${{ secrets.GITHUB_TOKEN }}# Step 2: run the sync action- name: Sync upstream changes@@ -27,13 +37,9 @@ jobs:upstream_sync_repo: LibreSpark/LibreTVupstream_sync_branch: maintarget_sync_branch: main- target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set-- # 指定 Actions Bot 为提交作者,避免给上游作者发邮件+ target_repo_token: ${{ secrets.GITHUB_TOKEN }}commit_user_name: github-actions[bot]- commit_user_email: [email protected]-- # Set test_mode true to run tests instead of the true action!!+ commit_user_email: 41898282+github-actions[bot]@users.noreply.github.comtest_mode: false- name: Sync check