Skip to content

Commit 510292e

Browse files
authored
Update libgit2sharp.yml
1 parent eabe890 commit 510292e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/libgit2sharp.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
echo running on branch ${GITHUB_REF##*/}
2929
dotnet pack --include-symbols -c Release LibGit2Sharp.sln
3030
ls ./bin/Packages/Release/
31+
echo "::set-output name=short_sha::$(echo ${GITHUB_SHA} | cut -c1-8) "
32+
3133
- name: Create Release
3234
id: create_release
3335
uses: actions/create-release@v1
@@ -43,7 +45,6 @@ jobs:
4345
uses: actions/upload-release-asset@v1
4446
env:
4547
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
SHORT_SHA: $(echo ${GITHUB_SHA} | cut -c1-8)
4748
with:
4849
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
4950
asset_path: ./bin/Packages/Release/LibGit2Sharp.0.27.0-preview-g${{ github.sha }}.nupkg

0 commit comments

Comments
 (0)