diff --git a/.github/workflows/dotnet-prerelease.yml b/.github/workflows/dotnet-prerelease.yml index 4adf169..024bef6 100644 --- a/.github/workflows/dotnet-prerelease.yml +++ b/.github/workflows/dotnet-prerelease.yml @@ -11,14 +11,11 @@ jobs: runs-on: windows-latest steps: - - name: Extract Tag Name - id: tag_name - run: echo "::set-output name=tag_name::$(echo ${GITHUB_REF#refs/tags/})" - name: Print Tag Name - run: echo "Creating release for Tag ${{ steps.tag_name.outputs.tag_name }}" + run: echo "Creating release for Tag $(basename ${{ github.ref }}" - name: Set Version variable id: version - run: echo "::set-output name=PRODUCT_VERSION::${{ steps.tag_name.outputs.tag_name }}" + run: echo "::set-output name=PRODUCT_VERSION::$(basename ${{ github.ref }}" - uses: actions/checkout@v3 - name: Setup .NET6 uses: actions/setup-dotnet@v2 diff --git a/.github/workflows/dotnet-release.yml b/.github/workflows/dotnet-release.yml index d217f08..7cebf6a 100644 --- a/.github/workflows/dotnet-release.yml +++ b/.github/workflows/dotnet-release.yml @@ -11,14 +11,11 @@ jobs: runs-on: windows-latest steps: - - name: Extract Tag Name - id: tag_name - run: echo "::set-output name=tag_name::$(echo ${GITHUB_REF#refs/tags/})" - name: Print Tag Name - run: echo "Creating release for Tag ${{ steps.tag_name.outputs.tag_name }}" + run: echo "Creating release for Tag $(basename ${{ github.ref }}" - name: Set Version variable id: version - run: echo "::set-output name=PRODUCT_VERSION::${{ steps.tag_name.outputs.tag_name }}" + run: echo "::set-output name=PRODUCT_VERSION::$(basename ${{ github.ref }}" - uses: actions/checkout@v3 - name: Setup .NET6 uses: actions/setup-dotnet@v2