Skip to content

Commit a2268a0

Browse files
markpollackchedim
authored andcommitted
Fix run-name to show commit hash instead of invalid split() function
Use github.sha to display the actual commit hash in workflow runs: - Manual runs: "Manual Test - abc1234" - Automatic runs: "Fast Build - def5678" This fixes the workflow validation error and restores the friendly name "Main Push - Fast" in the GitHub Actions workflow list. Signed-off-by: Mark Pollack <[email protected]>
1 parent 81cf982 commit a2268a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main-push-fast.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Main Push - Fast
2-
run-name: ${{ github.event.inputs.commit_sha && format('Manual Test - {0}', github.event.inputs.commit_sha) || format('Fast Build - {0}', split(github.event.head_commit.message, '\n')[0]) }}
2+
run-name: ${{ github.event.inputs.commit_sha && format('Manual Test - {0}', github.event.inputs.commit_sha) || format('Fast Build - {0}', github.sha) }}
33

44
on:
55
push:

0 commit comments

Comments
 (0)