Skip to content

Commit f6890dd

Browse files
committed
Add commit sha1 to action summary
1 parent 937fae6 commit f6890dd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/winget.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ jobs:
181181
if (-not($?)) {
182182
throw "Failed to commit changes: $($Error[0])"
183183
}
184+
$commitHash = git rev-parse HEAD
185+
if (-not($?)) {
186+
throw "Failed to get commit hash: $($Error[0])"
187+
}
184188
git push fork $branchName
185189
if (-not($?)) {
186190
throw "Failed to push changes to fork: $($Error[0])"
@@ -191,6 +195,9 @@ jobs:
191195
Branch created:
192196
$branchName
193197
198+
Commit hash:
199+
$commitHash
200+
194201
View changes in fork:
195202
https://github.com/$($env:WINGETPKGS_REPO_FORK)/commits/$branchName
196203

0 commit comments

Comments
 (0)