Skip to content

Commit

Permalink
fix version stripping
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranayub committed Apr 21, 2022
1 parent d3212ce commit 2d16796
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
dotnet-version: 6.0.x
- name: Set VERSION variable from tag
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Pack
run: dotnet pack -c Release IGDB/IGDB.csproj /p:Version=${VERSION} --output .
- name: Push
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
git branch --remote --contains | grep origin/main
- name: Set VERSION variable from tag
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Pack
run: dotnet pack -c Release IGDB/IGDB.csproj /p:Version=${VERSION} --output .
- name: Push
Expand Down

0 comments on commit 2d16796

Please sign in to comment.