Skip to content

fix: open PR instead of pushing directly to protected main branch#14

Merged
locus313 merged 1 commit into
mainfrom
locus313/fix-update-readme-sha-workflow
Jun 21, 2026
Merged

fix: open PR instead of pushing directly to protected main branch#14
locus313 merged 1 commit into
mainfrom
locus313/fix-update-readme-sha-workflow

Conversation

@locus313

Copy link
Copy Markdown
Owner

Problem

The update-readme-sha workflow failed because main is branch-protected — direct pushes require a PR and the Shellcheck status check to pass.

Fix

  • Creates a new branch (chore/update-readme-sha-{sha}) and opens a PR via gh pr create instead of pushing directly to main
  • Adds pull-requests: write permission so the bot can open the PR

The update-readme-sha workflow was pushing directly to main, which is
blocked by branch protection (requires PR + Shellcheck status check).

Now creates a branch and opens a PR via gh CLI instead.
Also adds pull-requests: write permission.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@locus313 locus313 merged commit 37982f2 into main Jun 21, 2026
1 check passed
@locus313 locus313 deleted the locus313/fix-update-readme-sha-workflow branch June 21, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant