Skip to content

Commit d54f6c1

Browse files
committed
autodetect version in CI
1 parent 97a16fd commit d54f6c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ jobs:
2626
- uses: actions/checkout@v4
2727
- uses: viamrobotics/build-action@v1
2828
with:
29-
# note: you can replace this line with 'version: ""' if you want to test the build process without deploying
30-
version: "" # ${{ github.ref_name }}
29+
version: ${{ startsWith(github.ref, 'refs/tags/v') && github.ref_name || '' }}
3130
ref: ${{ github.sha }}
3231
key-id: ${{ secrets.viam_key_id }}
3332
key-value: ${{ secrets.viam_key_value }}

0 commit comments

Comments
 (0)