File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,15 @@ jobs:
1818 dotnet-version : 5.0.100
1919 - name : Build Version
2020 # run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:11}) // deprecated
21- run : echo "RELEASE_VERSION=${GITHUB_REF:11} " >> $GITHUB_ENV
22- - run : echo Version $RELEASE_VERSION
23- - run : echo INPUT $GITHUB_REF
21+ run : echo "RELEASE_VERSION=$($env:GITHUB_REF.SubString(11)) " >> $env: GITHUB_ENV
22+ - run : echo Version $env: RELEASE_VERSION
23+ - run : echo INPUT $env: GITHUB_REF
2424 - name : Build Project
25- run : dotnet build --configuration Release -p:Version=$RELEASE_VERSION
25+ run : dotnet build --configuration Release -p:Version=$env: RELEASE_VERSION
2626 - name : Test Project
2727 run : dotnet test --no-build --configuration Release --logger trx
2828 - name : Pack Project
29- run : dotnet pack --no-build --output ./artifacts --configuration Release -p:Version=$RELEASE_VERSION
29+ run : dotnet pack --no-build --output ./artifacts --configuration Release -p:Version=$env: RELEASE_VERSION
3030 - uses : actions/upload-artifact@v1
3131 with :
3232 name : artifacts
You can’t perform that action at this time.
0 commit comments