Open techieshark opened 1 year ago
Thank you @techieshark, for reporting this. I will investigate as soon as possible.
Surely if act
is not aligned with GitHub, then this is an issue on the act
side? Have you reported it there or discussed it on their gitter?
I managed to get it running by doing the following:
event.json
pull_request
event payload:act pull_request -W .github/workflows/file.yaml --eventpath event.json
I'm using act v0.2.54
and nrwl/nx-set-shas@v4
Do we think that this is a bug with nx-set-shas
, or something that can be configured and possibly on the arc
side? @jantoodre @techieshark
I'm trying to use https://github.com/nektos/act to run the github actions workflow locally, during development.
I'm getting this error though:
The .github/workflows/file.yaml is like this:
To run it in the repo, I just do
and that's where I get the error up top.
According to https://docs.github.com/en/actions/learn-github-actions/contexts#github-context I'm guessing perhaps it would work if the code accessed
github.event.merged
rather thangithub.context.payload.pull_request.merged
? It's a bit unclear to me if this is an issue in this repo or perhaps some failing inact
, to not mirror the properties in the two different object locations or something. (I'm a bit new to github actions as well, so perhaps I'm missing something else)