File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 99 variables :
1010 name : Set Variables
1111 runs-on : ubuntu-latest
12- env :
13- TAG : ${{ github.event.release.tag_name }}
1412 steps :
13+ - name : Set tag output
14+ id : set_tag
15+ run : echo "tag=${{ github.event.release.tag_name }}" >> $GITHUB_OUTPUT
16+
1517 - name : Extract semantic version from tag
1618 id : set_version
1719 run : |
20+ TAG="${{ github.event.release.tag_name }}"
1821 # Remove the "v" prefix if it exists and extract the semantic version number
1922 SEMANTIC_VERSION=$(echo "${TAG}" | grep -Po "(?<=^|[^0-9])([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?(-[a-zA-Z]+[0-9]*)?)")
2023 SEMANTIC_VERSION=${SEMANTIC_VERSION#"v"}
2528 echo "Extracted semantic version: ${SEMANTIC_VERSION}"
2629 echo "semantic_version=${SEMANTIC_VERSION}" >> $GITHUB_OUTPUT
2730 outputs :
28- tag : $TAG
31+ tag : ${{ steps.set_tag.outputs.tag }}
2932 semanticVersion : ${{ steps.set_version.outputs.semantic_version }}
3033
3134 buildFrameworkVersions :
You can’t perform that action at this time.
0 commit comments