mirror of
https://github.com/ZSCGR/CloudFlare-ImgBed.git
synced 2026-08-13 04:03:42 +08:00
fix: summarize upstream sync failures
This commit is contained in:
@@ -66,8 +66,19 @@ jobs:
|
||||
run: gh workflow run deploy-worker.yml --repo "${{ github.repository }}" --ref main
|
||||
|
||||
- name: Sync failure guidance
|
||||
if: failure() && steps.breaking_guard.outputs.blocked != 'true'
|
||||
if: failure() && steps.sync.outcome == 'failure'
|
||||
run: |
|
||||
{
|
||||
echo "## ⚠️ 上游同步未完成 / Upstream synchronization did not complete"
|
||||
echo
|
||||
echo "上游同步步骤未能完成。若上游近期修改了 workflow 文件,GitHub 可能会暂停包含 workflow 变更的自动同步;也可能是当前 Fork 的 Actions 权限或同步权限发生了变化。"
|
||||
echo
|
||||
echo "The upstream synchronization step could not be completed. If the upstream workflow files changed recently, GitHub may pause automatic synchronization that includes workflow changes. The issue may also be related to Actions or synchronization permissions in this fork."
|
||||
echo
|
||||
echo "建议先在 GitHub 页面手动执行一次 **Sync fork**,确认 Actions 具有读写权限后,再重新运行本工作流。"
|
||||
echo
|
||||
echo "Please manually use **Sync fork** on GitHub, confirm that Actions has read and write permissions, and then rerun this workflow."
|
||||
} >> "$GITHUB_STEP_SUMMARY"
|
||||
echo "[Error] 上游同步未能完成。若上游近期修改了 workflow 文件,请先在 GitHub 页面手动执行一次 Sync Fork,然后重新运行本工作流。"
|
||||
echo "[Error] The upstream sync could not be completed. If the upstream workflow files changed recently, manually run Sync Fork on GitHub and then rerun this workflow."
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user