Description
Github context is not properly referenced when using the workflow_run
What type of issue is this? (place an x in one of the [ ])
Requirements (place an x in each of the [ ])
Bug Report
Create a workflow_run github action
Reproducible in:
package version: v1.18.0
node version: v16.13.0
OS version(s):
Steps to reproduce:
- create a Github Action running on the
workflow_run events
- add a json template that uses
${{github.event.workflow_run.name}} for example
- fire the event, and the json template will not properly replace the github context
Example of my JSON template
{
"text": "[Codebase News] - Pipeline is 🔴",
"attachments": [
{
"color": "#000",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Pipeline is 🔴 on `master`."
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Workflow `${{github.event.workflow_run.name}}` requires extra attention. :warning:"
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "More info here ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.github.event.workflow_run.run_id}}"
}
]
}
]
}
]
}
Expected result:
I would expect for the JSON file to have in hand the entire provided github context corresponding to the workflow_run event triggers.
Actual result:
As you can see ${{github.event.workflow_run.name}} did not work as expected

Also the regular github context did not work as well, here

Side Node:
I looked into this issue #51, and was aware that the problem got fixed, but I tested it multiple times, it was not properly fixed.
Description
Github context is not properly referenced when using the
workflow_runWhat type of issue is this? (place an
xin one of the[ ])Requirements (place an
xin each of the[ ])Bug Report
Create a
workflow_rungithub actionReproducible in:
package version: v1.18.0
node version: v16.13.0
OS version(s):
Steps to reproduce:
workflow_runevents${{github.event.workflow_run.name}}for exampleExample of my JSON template
{ "text": "[Codebase News] - Pipeline is 🔴", "attachments": [ { "color": "#000", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "Pipeline is 🔴 on `master`." } }, { "type": "section", "text": { "type": "mrkdwn", "text": "Workflow `${{github.event.workflow_run.name}}` requires extra attention. :warning:" } }, { "type": "context", "elements": [ { "type": "mrkdwn", "text": "More info here ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.github.event.workflow_run.run_id}}" } ] } ] } ] }Expected result:
I would expect for the JSON file to have in hand the entire provided github context corresponding to the
workflow_runevent triggers.Actual result:
As you can see


${{github.event.workflow_run.name}}did not work as expectedAlso the regular github context did not work as well, here
Side Node:
I looked into this issue #51, and was aware that the problem got fixed, but I tested it multiple times, it was not properly fixed.