diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8137f34f4..cc4b6da91 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,12 +25,10 @@ jobs: with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Tag current commit - id: tag shell: bash run: | version="${GITHUB_REF#refs/heads/release/}" git tag "${version}" - echo "release_version=${version}" >> "$GITHUB_OUTPUT" - name: Cache SonarCloud packages uses: actions/cache@v3 with: @@ -281,11 +279,13 @@ jobs: with: fetch-depth: 0 - name: Tag current commit + id: tag shell: bash run: | version="${GITHUB_REF#refs/heads/release/}" git tag "${version}" git push origin "${version}" + echo "release_version=${version}" >> "$GITHUB_OUTPUT" - name: Setup NuGet uses: NuGet/setup-nuget@v1.2.0 - name: Setup .NET