fix(ci): avoid release branch tag ambiguity
This commit is contained in:
parent
e30d842f58
commit
449f31dd8b
5
.github/workflows/rust-release.yml
vendored
5
.github/workflows/rust-release.yml
vendored
|
|
@ -1039,6 +1039,11 @@ jobs:
|
|||
fi
|
||||
|
||||
git switch --force-create "$target_branch" "origin/${target_branch}"
|
||||
# Release branches share their name with the release tag. Remove the
|
||||
# runner-local tag so create-pull-request's `symbolic-ref --short`
|
||||
# resolves vX.Y.Z instead of heads/vX.Y.Z (and then tries the
|
||||
# nonexistent origin/heads/vX.Y.Z remote-tracking branch).
|
||||
git update-ref -d "refs/tags/${target_branch}"
|
||||
printf '%s\n' "$manifest" > nix/release-manifest.json
|
||||
echo "target-branch=$target_branch" >> "$GITHUB_OUTPUT"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue