Fix failing deploy step: push docs directly to main instead of creating PR#25
Merged
Merged
Conversation
…ng PR Agent-Logs-Url: https://github.com/microsoft/aspire-devcontainer-feature/sessions/8330da31-1517-45a8-b040-55aa991dad29 Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
IEvangelist
April 7, 2026 20:11
View session
Member
|
If we can't create a PR, how do you expect pushing directly to main to work? @copilot |
Contributor
Author
These are actually two different permission mechanisms. Looking at the failing job logs,
So Would you like me to take a different approach here? |
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.
Problem
The "Create PR for Documentation" step in the release workflow fails with:
This happens because the organization/repository setting "Allow GitHub Actions to create and approve pull requests" is disabled, preventing the
GITHUB_TOKENfrom being used withgh pr create.Ref: https://github.com/microsoft/aspire-devcontainer-feature/actions/runs/24098962266/job/70304935920
Fix
Instead of creating a branch and opening a PR for documentation updates, push the changes directly to
main. This is safe because:main, so we're already on that branch[skip ci]to prevent recursive workflow triggersdevcontainers/actionChanges
maininstead of creating a branch + PR viagh pr createpull-requests: writepermission — no longer needed since we're not creating PRsGITHUB_TOKENenv var from the step — only needed forghCLI, which is no longer useduser.emailanduser.namepull.rebaseconfig