Skip to content

fix: fix the sync action failure#328

Merged
imbajin merged 1 commit into
apache:mainfrom
lokidundun:cifix
May 11, 2026
Merged

fix: fix the sync action failure#328
imbajin merged 1 commit into
apache:mainfrom
lokidundun:cifix

Conversation

@lokidundun
Copy link
Copy Markdown
Contributor

Purpose
This PR fixes the sync action failure when upstream modifies workflow files in .github/workflows/.
Previously, Fork-Sync-With-Upstream-action would fail to push with a permission error because GitHub's GITHUB_TOKEN cannot create or update workflow files.

Changes

  • Replace Fork-Sync-With-Upstream-action with a manual git sync script.
  • Check whether upstream modified .github/workflows/ before pushing.
  • Preserve local workflow files when upstream changes them, allowing GITHUB_TOKEN to push the remaining changes.
  • Remove the misleading hardcoded error message and unrelated tutorial link.

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels May 10, 2026
@lokidundun
Copy link
Copy Markdown
Contributor Author

@imbajin PTAL when you are convenient❤️

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label May 11, 2026
@imbajin imbajin merged commit 2f6e4df into apache:main May 11, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants