8000 Update libgit2sharp.yml · dotdevelop/libgit2sharp@29cf3c0 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 29cf3c0

Browse files
authored
Update libgit2sharp.yml
1 parent e9604a2 commit 29cf3c0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/libgit2sharp.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,14 @@ jobs:
2525
run: dotnet build --no-restore LibGit2Sharp.sln
2626
- name: Pack
2727
run: |
28-
echo running on branch $(echo ${GITHUB_SHA} | cut -c1-8)
28+
echo running on branch $(echo ${GITHUB_SHA} | cut -c1-10)
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-
31+
32+
- name: Short Sha
33+
id: short-sha
34+
run: echo "::set-output name=short_sha::$(echo ${GITHUB_SHA} | cut -c1-10) "
35+
3336
- name: Create Release
3437
id: create_release
3538
uses: actions/create-release@v1
@@ -47,7 +50,7 @@ jobs:
4750
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4851
with:
4952
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
50-
asset_path: ./bin/Packages/Release/LibGit2Sharp.0.27.0-preview-g${{ github.sha }}.nupkg
53+
asset_path: ./bin/Packages/Release/LibGit2Sharp.0.27.0-preview-g${{ steps.short-sha.putput.short_sha }}.nupkg
5154
asset_name: LibGit2Sharp.0.27.0-preview-g${{ github.sha }}.nupkg
5255
asset_content_type: application/nupkg
5356

0 commit comments

Comments
 (0)
0