Skip to content

Commit 81cf982

Browse files
markpollackchedim
authored andcommitted
Fix run-name to show only first line of commit message
Use split() to extract only the first line (subject) of the commit message instead of the entire multi-line message including Co-authored-by and Signed-off-by lines. Before: "Fast Build - test: Add tests Co-authored-by: ... Signed-off-by: ..." After: "Fast Build - test: Add tests" Signed-off-by: Mark Pollack <[email protected]>
1 parent 1da47a5 commit 81cf982

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}', github.event.head_commit.message) }}
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]) }}
33

44
on:
55
push:

0 commit comments

Comments
 (0)