mirror of
https://github.com/OpenLogics/MewtocolNet.git
synced 2025-12-06 03:01:24 +00:00
Fixed env.VERSION for sed step
This commit is contained in:
5
.github/workflows/publish-pipeline.yml
vendored
5
.github/workflows/publish-pipeline.yml
vendored
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user