Skip to content

Commit 7456847

Browse files
authored
fix: update way to get version to publish (#23)
1 parent 9a59b63 commit 7456847

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
env:
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3939

40+
- name: Get the version to publish
41+
id: get_version
42+
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v}
43+
4044
- name: Log in to the Container registry
4145
uses: docker/login-action@v1
4246
with:
@@ -50,4 +54,4 @@ jobs:
5054
- name: Build and push Docker image
5155
run: make publish
5256
env:
53-
VERSION: ${GITHUB_REF#refs/tags/v}
57+
VERSION: ${{ steps.get_version.outputs.VERSION }}

0 commit comments

Comments
 (0)