Skip to content

Commit 55cbd20

Browse files
committed
chore(ci): fix tag command failure
Use correct branch name.
1 parent 631f508 commit 55cbd20

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/test-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
id: tags
8282
shell: bash
8383
run: |
84-
echo "TAG::${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
84+
echo "tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
8585
8686
- name: Set up Python
8787
uses: actions/setup-python@v2

scripts/release

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ def tag() -> None:
190190
tag = get_tag(version)
191191
message = f"Releasing {version}"
192192
check_run(["git", "tag", "--annotate", tag, "--message", message])
193-
check_run(["git", "push", "origin", "main:main", f"{tag}:{tag}"])
193+
check_run(
194+
["git", "push", "origin", f"{RELEASE_BRANCH}:{RELEASE_BRANCH}", f"{tag}:{tag}"]
195+
)
194196

195197

196198
def get_release_notes(version: str) -> str:

0 commit comments

Comments
 (0)