Skip to content

Commit d99900f

Browse files
committed
ci: use push sha in dist branch commits
PR #3491 copied `github.event.workflow_run.head_sha` into a workflow that runs on push events. Issue #4766 notes that this leaves the generated npm and deno deployment commit messages without the source commit hash. Use `github.sha` instead of `github.event.workflow_run.head_sha` so those deployment commits identify the commit that produced their artifacts.
1 parent 790d832 commit d99900f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
environment: npm-branch
1919
artifact_name: npmDist
2020
target_branch: npm
21-
commit_message: "Deploy ${{github.event.workflow_run.head_sha}} to 'npm' branch"
21+
commit_message: "Deploy ${{ github.sha }} to 'npm' branch"
2222

2323
deploy-to-deno-branch:
2424
name: Deploy to `deno` branch
@@ -31,4 +31,4 @@ jobs:
3131
environment: deno-branch
3232
artifact_name: denoDist
3333
target_branch: deno
34-
commit_message: "Deploy ${{github.event.workflow_run.head_sha}} to 'deno' branch"
34+
commit_message: "Deploy ${{ github.sha }} to 'deno' branch"

0 commit comments

Comments
 (0)