Closed
ci: fix manifest-PR push rejection on workflow re-run#4380
Conversation
When PR #4379 triggered the 'opened' event, the external action nrfconnect/action-manifest-pr@main tried to push a new branch auto-manifest-sdk-zephyr-4379 to nordicbuilder/sdk-nrf. This failed because the branch already existed from a previous run. The 'opened' event handler in the action does not use --force, unlike the 'synchronize' handler. Fix: add a pre-step in the manifest-PR workflow that deletes the existing remote branch (if any) via the GitHub API before the action runs. The deletion is idempotent (errors are ignored). Assisted-by: Claude:claude-sonnet-5 Co-authored-by: alxelax <47027043+alxelax@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job call-manifest-pr-action
ci: fix manifest-PR push rejection on workflow re-run
Aug 18, 2026
Copilot stopped work on behalf of
alxelax due to an error
August 18, 2026 07:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
call-manifest-pr-actionjob fails when the workflow is re-run on a PRopenedevent becausenrfconnect/action-manifest-pr@mainattempts a non-force push ofauto-manifest-sdk-zephyr-<PR>tonordicbuilder/sdk-nrf, which is rejected if the branch already exists from a prior run. Thesynchronizehandler uses-f; theopenedhandler does not.Changes
.github/workflows/manifest-PR.yml: Add a pre-step (gated onopenedevents) that deletes the existing remote branch via the GitHub API before the action runs. Uses|| trueso it is a no-op when the branch does not exist.