-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed to be able to use env of Step #159
Conversation
Hi @hnarimiya thanks for the contribution 💯 I'm currently working on a work around for these integration test, will wait on others approval before merging this |
What's the status of this? Would be good to get this fix merged :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't look like these changes render properly, at least based on the integration tests we ran with these changes. Any idea why?
@@ -1,13 +1,31 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of the fields in this payload are not showing up correctly. Attached is a screenshot of the GitHub CI run from #163 (which is a copy of this PR), and how it looks like in our Slack workspace where the message gets posted:
In particular, it seems the following fields do not work as desired from the integration_test_file_payload
test from main.yml
: env.JOB_STATUS
, github.payload.head_commit.url
, github.payload.head_commit.author.name
, github.payload.head_commit.message
.
Any idea why this might be happening?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same seems to happen for us
We integrated this fix in #200, will release shortly. |
@Darwiner what event tripped the action and what does the file look like? We found in our testing that different events have different shapes and so those details matter. |
This was triggered via a PR open/synchronize, the top of the workflow file being:
As for the json file, it goes like this:
Additionally, another piece of info that might or might not be relevant is that this is triggered via a composite action. The action in the composite action being:
|
we have the same problem. the 'fix' didn't the rendering when you use a payload json file. We also see the github env variables rendered with '?' |
Summary
Hello, thanks for this useful software !
I modified the env defined in step to be available in file.
Also, the process of replacing $ was strange, so I fixed it.
In addition, notes on using files were added to the README.
issues: #84
Requirements (place an
x
in each[ ]
)