ci: open PR instead of direct push in dependabot update workflow#424
Merged
DennisOSRM merged 2 commits intogh-pagesfrom Apr 26, 2026
Merged
ci: open PR instead of direct push in dependabot update workflow#424DennisOSRM merged 2 commits intogh-pagesfrom
DennisOSRM merged 2 commits intogh-pagesfrom
Conversation
Agent-Logs-Url: https://github.com/Project-OSRM/osrm-frontend/sessions/1a465b6b-150a-4a98-a775-ff2d3fb88820 Co-authored-by: DennisOSRM <1067895+DennisOSRM@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Project-OSRM/osrm-frontend/sessions/1a465b6b-150a-4a98-a775-ff2d3fb88820 Co-authored-by: DennisOSRM <1067895+DennisOSRM@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
DennisOSRM
April 26, 2026 05:32
View session
There was a problem hiding this comment.
Pull request overview
Updates the scheduled dependency update workflow to avoid direct pushes to the protected gh-pages branch by creating a dedicated update branch and opening a PR instead.
Changes:
- Replace
git pushto the protected branch with a timestamped branch push +gh pr create. - Add
GH_TOKENso the GitHub CLI can authenticate when creating the PR.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| git config user.email "github-actions[bot]@users.noreply.github.com" | ||
|
|
||
| if ! git diff --quiet; then |
Comment on lines
+50
to
+52
| gh pr create \ | ||
| --base gh-pages \ | ||
| --head "$BRANCH" \ |
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 scheduled dependency update workflow was pushing directly to
gh-pages, which is a protected branch requiring PRs and status checks — causing the workflow to fail withGH006: Protected branch update failed.Changes
git pushtogh-pages, the workflow now creates a timestamped branch (chore/update-dependencies-<YYYYMMDD-HHMMSS>) and opens a PR againstgh-pagesviagh pr create%Y%m%d-%H%M%Sto avoid collisions on repeated same-day runsThe
pull-requests: writepermission was already present on the workflow, so no permissions changes were needed.