How to set PR title as run-name for merge_group job/wf #75594
Replies: 2 comments 4 replies
-
In GitHub Actions, the However, there's a workaround to achieve a similar result by using a step within your workflow to dynamically name your run, although it won't change the name of the workflow run itself, but can help in labeling or tagging steps or artifacts within the workflow. name: GK Job (Post PR verify Job)
on:
merge_group:
branches:
- 'xyz'
jobs:
set-run-name:
runs-on: ubuntu-latest
steps:
- name: Set Run Name
run: echo "RUN_NAME=${{ github.event.pull_request.title }}" >> $GITHUB_ENV
In this example, a new job The |
Beta Was this translation helpful? Give feedback.
-
🕒 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
I have a workflow on merge_group (below is the example), as the event for this workflow is merge_group, How can I set run-name as the PR title?
name: GK Job (Post PR verify Job)
run-name: ${{ github.event.pull_request.title }}
on:
merge_group:
branches:
- 'xyz'
Beta Was this translation helpful? Give feedback.
All reactions