Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CI changelog validation step (#108)
When checking to see whether the current PR was for a release candidate or not, we were checking the wrong variable. `github.ref` contains the branch name if the action was triggered by a branch event, but in this case it's triggered by a `pull_request` event. For `pull_request` events, `github.ref` is set to `refs/pulls/[PR number]/merge`, so nothing was being recognized as a release candidate. Instead it now checks `github.head_ref`, which is set to the branch name if it was triggered by `pull_request`. This workflow technically has two triggers: pushes to the `main` branch, and `pull_request`. But a push to the main branch is never a release candidate, so it's sufficient to just check `github.head_ref`. Also the `yarn setup:postinstall` step was added, as it was missing from the changelog validation job.
- Loading branch information