Fix AUR release push from detached checkouts - #98
Merged
Conversation
AUR release jobs checkout tags and can run detached, so pushing the literal local master ref fails after PKGBUILD generation. Push the prepared HEAD commit explicitly to the AUR master branch for both stable and -git publication paths. Constraint: GitHub Actions checkout may be detached Rejected: Create local master branch in workflow | unnecessary ref mutation Confidence: high Scope-risk: narrow Directive: Keep explicit HEAD:master refspec for AUR publication jobs Tested: git diff --check; workflow syntax diff review Not-tested: Live AUR push until rerun with repository secret
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 v2.2.6 AUR workflow generated correct package metadata, then failed because tag checkouts are detached and
git push origin masterhad no localmasterref.Fix
Push the prepared commit explicitly with
HEAD:masterfor stable and-gitAUR publication jobs.Validation
git diff --checkv2.2.6