Skip to content

Commit

Permalink
Update v8-main-pre-release.yml
Browse files Browse the repository at this point in the history
Strip leading v from tag if exists
  • Loading branch information
OwainJ authored May 15, 2024
1 parent a809d6a commit 5bebda8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/v8-main-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ jobs:
- name: Set VERSION variable from tag
run: |
git fetch --tags
echo "VERSION=$(git describe --tags --abbrev=0)" >> $env:GITHUB_ENV
$tag = git describe --tags --abbrev=0
if ($tag.StartsWith("v")) {
$cleanTag = $tag.Substring(1)
} else {
$cleanTag = $tag
}
echo "GIT_TAG=$cleanTag" >> $env:GITHUB_ENV
- name: Setup NuGet
uses: NuGet/setup-nuget@v2
Expand Down

0 comments on commit 5bebda8

Please sign in to comment.