Skip to content

Commit fdb5f45

Browse files
committed
Add branch name setting in release workflow
- Introduced a step in the release.yml workflow to set the branch name by transforming the GITHUB_REF variable, enhancing the clarity and usability of the release process.
1 parent 8faaa0f commit fdb5f45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@v4
1717

18+
- name: Set branch name
19+
id: branch
20+
run: echo ::set-output name=branch::$(echo ${GITHUB_REF:11} | tr / -)
21+
1822
- name: Set up Go
1923
uses: actions/setup-go@v4
2024
with:

0 commit comments

Comments
 (0)