-
I’m trying to create a workflow that parses raw logs (from a particular project) posted in issues, convert them to a HTML representation with a python script I’ve written and post a link back to the issue to that file. At this point, I have something that works but with a few limitations. If a try to store the content body as an environment variable like this:
I will get the infamous Trying to stuff What I would prefer is a way to store the issue body in a file directly, so I can read the content from there. Is that possible somehow (without going via shell)? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The full contents are already on disk. If you look at Context and expression syntax for GitHub Actions - GitHub Docs |
Beta Was this translation helpful? Give feedback.
-
Ah, that is excellent! That will definitely work for me, thanks for point that out! |
Beta Was this translation helpful? Give feedback.
The full contents are already on disk. If you look at Context and expression syntax for GitHub Actions - GitHub Docs
github.event_path
is the location of a .json file that contains the full webhook payload. You should be able to read that file in and parse from there.