Skip to content

Commit 23321cb

Browse files
Fix version stripping in GitHub action to prevent double 'v' prefix
The blauqs/actions-download-asset action prepends a 'v' to the version, so we need to strip the first character from our tag name (e.g., 'vjamscribe-2' becomes 'jamscribe-2') to avoid 'vvjamscribe-2' format. Co-authored-by: Michael Kochell <mickmister@users.noreply.github.com>
1 parent e14dc64 commit 23321cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/build-rpi-image/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ runs:
5151
map(select(.tagName | startswith($prefix)))
5252
| sort_by(.publishedAt)
5353
| last
54-
| if . == null then "none" else .tagName end
54+
| if . == null then "none" else .tagName[1:] end
5555
')
5656
echo "latest_tag=$latest" >> $GITHUB_OUTPUT
5757
echo "Found latest release: $latest"

0 commit comments

Comments
 (0)