fountainhead / action-wait-for-check

A GitHub Action that waits for another Check Run to have completed
MIT License
122 stars 44 forks source link

Use github.ref instead of github.sha #24

Open dolfinus opened 2 years ago

dolfinus commented 2 years ago

If someone is using Rebase merge option in Github repo, it leads to moving commit from feature branch to main branch without creating an intermediate merge commit. So SHA-256 hash of this commit remains the same.

Because default ref value is github.sha, this action reports previous check status, because it already been executed for the same commit.

Here I've changed default ref value to github.ref which points the the exact branch.

dolfinus commented 2 years ago

@wms Could you check please?