diff --git a/.github/workflows/auto_release.yml b/.github/workflows/auto_release.yml index f833a5e..1204126 100644 --- a/.github/workflows/auto_release.yml +++ b/.github/workflows/auto_release.yml @@ -199,7 +199,6 @@ jobs: id: run_gitversion run: | pwsh -noprofile -c 'dotnet-gitversion /diag' - pwsh -noprofile -c '(dotnet-gitversion | ConvertFrom-Json).psobject.properties | % { echo ("{0}={1}" -f $_.name, $_.value) >> $GITHUB_OUTPUT }' - name: Generate token id: generate_token @@ -217,7 +216,7 @@ jobs: const tag = await github.request(('POST ' + uri_path), { owner: context.payload.repository.owner.login, repo: context.payload.repository.name, - ref: 'refs/tags/${{ steps.run_gitversion.outputs.MajorMinorPatch }}', + ref: 'refs/tags/${{ env.GitVersion_MajorMinorPatch }}', sha: '${{ needs.lookup_default_branch.outputs.head_commit }}' })