Skip to content

fix: use gh CLI for PR creation, bump Node to 22, add permissions#27

Merged
pyramation merged 1 commit into
mainfrom
feat/fix-regenerate-workflow
Jul 2, 2026
Merged

fix: use gh CLI for PR creation, bump Node to 22, add permissions#27
pyramation merged 1 commit into
mainfrom
feat/fix-regenerate-workflow

Conversation

@pyramation

Copy link
Copy Markdown
Collaborator

Summary

Fixes the regenerate-ops.yml workflow that failed on first run due to a 403 push permission error.

Changes:

  • Replace peter-evans/create-pull-request@v6 with gh pr create (matches the pattern used in constructive-db's schema-sdk-update.yml)
  • Auth via GH_TOKEN: ${{ secrets.GH_SUBMODULE_PAT || github.token }} — uses PAT if available, falls back to built-in token
  • Add top-level permissions: contents: write, pull-requests: write so the default token can push branches
  • Bump Node from 20.x to 22.x (20 is deprecated on GitHub Actions runners)

Link to Devin session: https://app.devin.ai/sessions/409b3a5833884f2bbdfe98f3dbee192d
Requested by: @pyramation

@pyramation pyramation self-assigned this Jul 2, 2026
@devin-ai-integration

Copy link
Copy Markdown

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@pyramation pyramation merged commit 16e2269 into main Jul 2, 2026
5 checks passed
@pyramation pyramation deleted the feat/fix-regenerate-workflow branch July 2, 2026 00:48
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