-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When workflow is triggered as workflow_run on [completed] it receives run-name as name in the event. workflow_run object.
To Reproduce
Steps to reproduce the behavior:
Create 2 workflows:
- To trigger
name: Test workflow
run-name: Unexpected value
on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo 1- To watch for workflow run:
name: WF Run
on:
workflow_run:
workflows:
- Test workflow
types:
- requested
- completed
jobs:
export:
runs-on: ubuntu-latest
steps:
- run: |
echo "name = '${{ github.event.workflow_run.name }}'"
echo "display_title = '${{ github.event.workflow_run.display_title }}'"On requested it outputs:
name = 'Test workflow'
display_title = 'Test workflow'
And on completed:
name = 'Unexpected value'
display_title = 'Unexpected value'
Expected behavior
Expecting to see name in the workflow_run.name and run-name in github.event.workflow_run.display_title.
Runner Version and Platform
Version of your runner? Latest
OS of the machine running the runner? Ubuntu
What's not working?
Outputs run-name instead of name in the event object.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working