We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5b4148 commit 9b75d0eCopy full SHA for 9b75d0e
.github/workflows/release-prod.yaml
@@ -14,7 +14,13 @@ jobs:
14
with:
15
fetch-depth: 0
16
- name: Extract tag name
17
- run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
+ run: |
18
+ # remove the "refs/tags/" prefix to get the tag that was pushed
19
+ export RAW_TAG=${GITHUB_REF#refs/tags/}
20
+ # add a 'v' prefix to the tag if it doesn't already have one
21
+ export V_TAG=$(echo "$RAW_TAG" | sed 's/^[^v]/v&/')
22
+ # store the tag name in a github environment variable for later steps
23
+ echo "TAG_NAME=${V_TAG}" >> $GITHUB_ENV
24
- name: Set up Go
25
uses: actions/setup-go@v5
26
0 commit comments