CircleCI-Public / trigger-circleci-pipeline-action

Trigger a CircleCI pipeline from any GitHub Actions event.
https://github.com/marketplace/actions/trigger-circleci-pipeline
48 stars 43 forks source link

fix: pr ref to branch head #37

Closed KyleTryon closed 1 year ago

KyleTryon commented 1 year ago

aims to resolve #36

I was able to determine the issue was, the ref sent by GitHub is to a merge commit which has no parent. CircleCI attempts to check this out by the branch and then fails. This change instead pulls the head of the pull request.

Verification: https://app.circleci.com/pipelines/github/KyleTryon/CircleCI-Metadata-Build?branch=pull%2F9%2Fhead