Closed leaftail1880 closed 9 months ago
github.head_ref is only available on pull request context, so simple replacing all github.ref to github.head_ref is not the way.
Hi @leaftail1880, I've documented it here and 90% of the examples inside the README.md
file use the head_ref
. I think it's still valid to use only ref
in case the workflow is triggered by a push
event directly and we should not modify the documentation. From my understanding, it's communicated to use head_ref
in case of a PR (It's only available in case of a PR).
Yes, I didn't notice, thanks for the answer
Related to #143
When action is used on pull request, github.ref throws error, so github.head_ref should be used
In the linked issue there was message about updating documentation, but that wasn't happened.