diff --git a/.github/workflows/publish-pipeline.yml b/.github/workflows/publish-pipeline.yml index 025084d..d542d90 100644 --- a/.github/workflows/publish-pipeline.yml +++ b/.github/workflows/publish-pipeline.yml @@ -21,10 +21,13 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set .csproj version to ${{github.ref_name}} + - name: Parse version tag run: | VERSION=${{ github.ref_name }} echo "VERSION=${VERSION:1}" >> $GITHUB_ENV + + - name: Set .csproj version to ${{ env.VERSION }} + run: | sed -i 's/[0-9].[0-9].[0-9]<\/Version>/${{ env.VERSION }}<\/Version>/g' MewtocolNet/MewtocolNet.csproj less MewtocolNet/MewtocolNet.csproj