Skip to content

Commit

Permalink
Update yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fhoedemakers committed Jul 28, 2023
1 parent 75341e6 commit 96afaab
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,7 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x

- name: Show Tag
run: |
# Extract the tag name that triggered the event and remove the 'refs/tags/' prefix
TAG_NAME=${{ github.ref }}
echo "-->${TAG_NAME}<--"
pwd

- name: Update VersionInfo.cs with associated tag if it exists
run: |
# Extract the tag name that triggered the event and remove the 'refs/tags/' prefix
Expand All @@ -52,7 +46,7 @@ jobs:
echo "The string does not start with 'refs/tags/'."
fi
echo "Tag is ${tag}"
sed -i "s/DEVVERSION/${TAG_NAME}/g" VersionInfo.cs
sed -i "s/DEVVERSION/${tag}/g" VersionInfo.cs
cat VersionInfo.cs
- name: Restore dependencies
Expand Down

0 comments on commit 96afaab

Please sign in to comment.