From 7bd07bb520390003d4edf3e4f8b4a073769b1e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Wei=C3=9F?= <72068105+Sandoun@users.noreply.github.com> Date: Fri, 16 Jun 2023 12:10:57 +0200 Subject: [PATCH] Fixed env.VERSION for sed step --- .github/workflows/publish-pipeline.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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