We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01439eb commit 99bc109Copy full SHA for 99bc109
.github/workflows/sodium.yml
@@ -28,12 +28,15 @@ jobs:
28
submodules: recursive
29
30
- name: Checkout latest Tag
31
+ id: print-version
32
shell: bash
33
run: |
34
git fetch --tags
- LATEST_TAG=$(git tag | grep -E ^[0-9]+.[0-9]+.[0-9]+$ | tail -1)
35
+ LATEST_TAG=$(git tag --sort=-v:refname | head -1)
36
git checkout "$LATEST_TAG"
- echo "version=$LATEST_TAG" >> $GITHUB_OUTPUT
37
+ VERSION="${LATEST_TAG%-RELEASE}"
38
+ VERSION="${VERSION%-FINAL}"
39
+ echo "version=$VERSION" >> $GITHUB_OUTPUT
40
41
- name: Install Visual Studio 2022 Build Tools
42
if: matrix.os == 'windows-latest'
0 commit comments