Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
always check out the
github.head_ref
in CI
The default behavior for the `actions/checkout` is to check out the `github.ref` commit. In the case of `pull_request_target` triggers, the `github.ref` commit is the last commit on the target branch (typically `main`), instead of the PR branch: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target > This event runs in the context of the base of the pull request, rather than in the context of the merge commit, as the pull_request event does. Unfortunately, that means that unless we specify the correct PR branch, the `kotlin.yml` workflow jobs will just execute against the `main`.
- Loading branch information