Skip to content

Fix formatting workflow git push to specify target branch explicitly#117

Merged
becheran merged 3 commits intomasterfrom
copilot/fix-formatting-pipeline
Dec 10, 2025
Merged

Fix formatting workflow git push to specify target branch explicitly#117
becheran merged 3 commits intomasterfrom
copilot/fix-formatting-pipeline

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 9, 2025

The formatting job's git push command failed when GitHub Actions couldn't determine the default push target.

Changes

  • Updated .github/workflows/rust.yml line 63 to explicitly specify target branch:
    # Before
    git push
    
    # After  
    git push origin HEAD:${{ github.ref_name }}

Uses GitHub Actions' github.ref_name context variable to push to the correct branch in all workflow contexts (push, PR, workflow_dispatch).

Original prompt

Fix failing formatting pipeliena nd commit correctly to branch. Copilot sugests:

63| branch_name="${GITHUB_REF##*/}"
64| git push origin HEAD:$branch_name


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI self-assigned this Dec 9, 2025
Copilot AI and others added 2 commits December 9, 2025 20:02
Co-authored-by: becheran <22472855+becheran@users.noreply.github.com>
Co-authored-by: becheran <22472855+becheran@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing formatting pipeline and commit correctly Fix formatting workflow git push to specify target branch explicitly Dec 9, 2025
Copilot AI requested a review from becheran December 9, 2025 20:05
@becheran becheran marked this pull request as ready for review December 10, 2025 06:08
@becheran becheran merged commit 72bee6d into master Dec 10, 2025
17 of 18 checks passed
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.

2 participants