Putting a single line of commit title manually on run-name
#41705
Replies: 1 comment
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Hi folks,
According to the reference run-name, the default title of workflow run when a push & pull request events are triggering actions is the commit message.
Getting closer look, it is the "title" of the commit message, so it still looks neat when the last commit message has a multiline body.
What I'm trying to do is do it same manually, except adding branch information ahead of it, like:
This could be done by adding
run-name
like:But here comes the problem.
github.event.head_commit.message
actually is the entire message, and if the push event occurs, the title of workflow run becomes very long because it has full commit message body.I just want to put the default behavior right there, but couldn't find the decent expression. What I'd like to do is:
or something like:
Does anyone know how to achieve this?
Reference
Beta Was this translation helpful? Give feedback.
All reactions