Skip to content

Commit 3e92802

Browse files
authored
Update nuget-pack-push.yml
1 parent f3616b3 commit 3e92802

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/nuget-pack-push.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Setting environment variables
22-
run: |
23-
echo "::set-env name=BRANCH::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
22+
run: |
2423
echo "::set-env name=COMMIT::$GITHUB_SHA"
25-
echo "::set-env name=VERSION::$(echo ${GITHUB_REF:10})
24+
echo "::set-env name=VERSION::${GITHUB_REF/refs\/tags\//}
2625
echo Version $VERSION - Branch $BRANCH - Commit $COMMIT

0 commit comments

Comments
 (0)