Skip to content

Commit cf85316

Browse files
committed
👷 Prerelease tag fix
1 parent 0e5d0a8 commit cf85316

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/dev.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
env:
4040
IMAGE_NAME: ${{ needs.image-details.outputs.base-name }}
4141
IMAGE_URL: ${{ needs.image-details.outputs.base-url }}
42+
# Image variant name is drawn from final `--dir` entry in file generation command line
4243
IMAGE_DIR: build/standard
4344

4445
steps:
@@ -96,9 +97,9 @@ jobs:
9697
attestations: write
9798
id-token: write
9899
env:
99-
# Image variant name is drawn from final `--dir` entry in file generation command line
100100
IMAGE_NAME: ${{ needs.image-details.outputs.base-name }}-plugins
101101
IMAGE_URL: ${{ needs.image-details.outputs.base-url }}-plugins
102+
# Image variant name is drawn from final `--dir` entry in file generation command line
102103
IMAGE_DIR: build/plugins
103104

104105
steps:
@@ -154,9 +155,9 @@ jobs:
154155
attestations: write
155156
id-token: write
156157
env:
157-
# Image variant name is drawn from final `--dir` entry in file generation command line
158158
IMAGE_NAME: ${{ needs.image-details.outputs.base-name }}-arm-none-eabi
159159
IMAGE_URL: ${{ needs.image-details.outputs.base-url }}-arm-none-eabi
160+
# Image variant name is drawn from final `--dir` entry in file generation command line
160161
IMAGE_DIR: build/arm-none-eabi
161162

162163
steps:
@@ -212,9 +213,9 @@ jobs:
212213
attestations: write
213214
id-token: write
214215
env:
215-
# Image variant name is drawn from final `--dir` entry in file generation command line
216216
IMAGE_NAME: ${{ needs.image-details.outputs.base-name }}-arm-none-eabi-plugins
217217
IMAGE_URL: ${{ needs.image-details.outputs.base-url }}-arm-none-eabi-plugins
218+
# Image variant name is drawn from final `--dir` entry in file generation command line
218219
IMAGE_DIR: build/arm-none-eabi-plugins
219220

220221
steps:
@@ -268,10 +269,16 @@ jobs:
268269
contents: write
269270

270271
steps:
272+
# Capture the SHA string
273+
- name: Git commit short SHA as environment variable
274+
shell: bash
275+
run: |
276+
echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
277+
271278
- uses: ncipollo/release-action@v1
272279
with:
273280
prerelease: true
274281
allowUpdates: true
275-
tag: ${{ github.ref }}
282+
tag: ${{ env.SHA_SHORT }}
276283
artifacts: "build/*/docker/Dockerfile,build/*/assets/shell/welcome"
277284

0 commit comments

Comments
 (0)