We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b175dc2 commit 28249edCopy full SHA for 28249ed
.github/workflows/release.yaml
@@ -156,6 +156,16 @@ jobs:
156
- name: Checkout
157
uses: actions/checkout@v2
158
159
+ - name: Set Versions
160
+ uses: actions/github-script@v6
161
+ id: set_version
162
+ with:
163
+ script: |
164
+ const tag = context.ref.substring(10)
165
+ const no_v = tag.replace('v', '')
166
+ core.setOutput('tag', tag)
167
+ core.setOutput('nov', no_v)
168
+
169
- name: Log in to GitHub Container Registry
170
uses: docker/login-action@v1
171
with:
@@ -168,5 +178,5 @@ jobs:
178
179
push: true
180
tags: |
- ghcr.io/${{ github.repository }}:${{ github.ref }}
181
+ ghcr.io/${{ github.repository }}:${{steps.set_version.outputs.nov}}
172
182
ghcr.io/${{ github.repository }}:latest
0 commit comments