File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,14 @@ jobs:
2626 with :
2727 source-url : https://nuget.pkg.github.com/LEGO/index.json
2828 env :
29- NUGET_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
29+ NUGET_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
30+
31+ - name : Get last char shortened GITHUB_RUN_ID
32+ id : slug
33+ run : echo "::set-output name=github_run_id::$(echo ${$GITHUB_RUN_ID} | cut -c1-9)"
3034
3135 - name : Build ${{ matrix.package-name }} project and pack NuGet package
32- run : dotnet pack src/${{ matrix.package-name }}/${{ matrix.package-name }}.csproj -c Release -o out-${{ matrix.package-name }} -p:PackageVersion=0.1.$GITHUB_RUN_ID .$GITHUB_RUN_NUMBER-prerelease
36+ run : dotnet pack src/${{ matrix.package-name }}/${{ matrix.package-name }}.csproj -c Release -o out-${{ matrix.package-name }} -p:PackageVersion=0.1.${{ steps.slug.outputs.github_run_id }} .$GITHUB_RUN_NUMBER-prerelease
3337
3438 - name : Push generated package to GitHub Packages registry
3539 run : dotnet nuget push out-${{ matrix.package-name }}/*.nupkg --skip-duplicate -n --api-key ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments