We have implemented a fix so that GITHUB_REF
and the github.ref
context value return a fully-formed ref (e.g – refs/heads/main
) when a workflow is triggered as a result of a pull request being merged. This change only impacts a small subset of workflows that trigger as a result of a pull request closing after being merged and that make use of GITHUB_REF
or github.ref
.
Previously, GITHUB_REF
and github.ref
were incorrectly returning a shortened ref (e.g. – main
). These should always return a fully-formed ref regardless of the scenario.
Please visit our documentation for more details about using Actions context and variables.
For questions, visit the GitHub Actions community.
To see what's next for Actions, visit our public roadmap.