Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pregress committed Oct 1, 2024
1 parent 450f1a4 commit 5d35b2b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ jobs:
with:
dotnet-version: 8.0.x

- id: get_version
name: Get version
uses: jannemattila/get-version-from-tag@v3
- uses: nowsprinting/check-version-format-action@v3
id: version
with:
prefix: 'v'

- name: Update Assembly and NuGet package version
run: |
version=${{ steps.get_version.outputs.version }}
version=${{ steps.version.outputs.full_without_prefix }}
echo "Updating Assembly and NuGet package versions to ${version}"
sed -i "s/<VersionPrefix>.*<\/VersionPrefix>/<VersionPrefix>${version}<\/VersionPrefix>/g" ./ApimSanitizer.csproj
working-directory: src
Expand Down

0 comments on commit 5d35b2b

Please sign in to comment.