Skip to content

Commit 2c181d9

Browse files
committed
Refactor version extraction step to use environment output variables
1 parent 5504e6d commit 2c181d9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
id: extract_version
2626
shell: bash
2727
run: |
28-
echo "package_version=${{ github.ref_name }}" >> $GITHUB_ENV
29-
echo "assembly_version=$(echo ${{ github.ref_name }} | grep -o '^[0-9]*\.[0-9]*\.[0-9]*').0" >> $GITHUB_ENV
28+
PACKAGE_VERSION="${{ github.ref_name }}"
29+
ASSEMBLY_VERSION="$(echo ${{ github.ref_name }} | grep -o '^[0-9]*\.[0-9]*\.[0-9]*').0"
30+
echo "package_version=$PACKAGE_VERSION" >> $GITHUB_OUTPUT
31+
echo "assembly_version=$ASSEMBLY_VERSION" >> $GITHUB_OUTPUT
32+
echo "Package Version: $PACKAGE_VERSION"
33+
echo "Assembly Version: $ASSEMBLY_VERSION"
3034
3135
- name: Build projects
3236
shell: bash

0 commit comments

Comments
 (0)