Skip to content

Commit 1c53248

Browse files
[FSSDK-11956] pipeline
1 parent 224e195 commit 1c53248

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/csharp_release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ jobs:
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"}
@@ -25,7 +28,7 @@ jobs:
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:

0 commit comments

Comments
 (0)