Fixed env.VERSION for sed step

This commit is contained in:
Felix Weiß
2023-06-16 12:10:57 +02:00
parent f99af9511b
commit 7bd07bb520

View File

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