act/pkg
Björn Brauer edd0fb92a7
feat: try to read ref and sha from event payload if available (#889)
With this change `act` will try to populate the `githubContext.ref` and
`githubContext.sha` with values read from the event payload.

Caveats:
- `page_build` should not have a ref
- `status` should not have a ref
- `registry_package` should set the ref to the branch/tag but the
  payload isn't documented
- `workflow_call` should set ref to the same value as its caller but the
  payload isn't documented
- most of the events should set the sha to the last commit on the ref
  but unfortunately the sha is not always included in the payload,
  therefore we use the sha from the local git checkout

Co-Authored-By: Philipp Hinrichsen <philipp.hinrichsen@new-work.se>

Co-authored-by: Philipp Hinrichsen <philipp.hinrichsen@new-work.se>
2022-01-21 08:10:00 -08:00
..
artifacts feat: add node16 support (#922) 2021-12-22 19:34:18 +00:00
common fix: continue jobs + steps after failure (#840) 2021-12-08 20:57:42 +00:00
container feat: add node16 support (#922) 2021-12-22 19:34:18 +00:00
exprparser Refactor expression evaluator to use parser from actionlint package (#908) 2022-01-21 08:07:20 -08:00
model feat: try to read ref and sha from event payload if available (#889) 2022-01-21 08:10:00 -08:00
runner feat: try to read ref and sha from event payload if available (#889) 2022-01-21 08:10:00 -08:00