Closed casperdcl closed 1 year ago
9a58829
There were no links to check!
I'm a bit confused with https://github.com/iterative/cml.dev/pull/357/commits/334d25fad7ba8ba5530536fa3bb6f52b794c4cbc 🤔
If the workflow triggers on push
shouldn't the github.event
payload be different?
Yes github.event.pull_request.head.sha
will be blank on: push
and work correctly (checking out a branch rather than SHA), right?
I'm leaving github.event.pull_request.head.sha
as-is anyway just in case pple modify to use on: pull_request
.
Related: https://github.com/iterative/example-get-started/pull/31 deserves a technical write-up.
github.event.pull_request.head.sha || github.sha
~