You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "[Error] Due to a change in the workflow file of the upstream repository, GitHub has automatically suspended the scheduled automatic update. You need to manually sync your fork. Please refer to the detailed tutorial for instructions: https://github.com/Yidadaa/ChatGPT-Next-Web#enable-automatic-updates"
40
-
exit 1
34
+
if [ "${{ steps.sync.outputs.has_new_commits }}" == "true" ]; then
35
+
echo "Sync successful: New commits were added."
36
+
else
37
+
echo "No new commits from upstream."
38
+
fi
39
+
40
+
- name: Notify on failure
41
+
if: failure()
42
+
uses: actions/github-script@v6
43
+
with:
44
+
script: |
45
+
await github.rest.issues.create({
46
+
owner: context.repo.owner,
47
+
repo: context.repo.repo,
48
+
title: "Upstream Sync Failed",
49
+
body: "Sync failed due to upstream workflow changes. Please manually sync your fork: [Guide](https://github.com/Yidadaa/ChatGPT-Next-Web#enable-automatic-updates)"
0 commit comments