Closed particledecay closed 4 years ago
@particledecay Can you verify that .git/refs/heads/master
exists? I'm looking at https://github.com/talos-systems/conform/blob/master/internal/policy/commit/commit.go#L111.
@particledecay As we discussed, this is a limitation in the way GH actions checks out a repo. Gonna close.
Yep. The problem is in the actions/checkout
action only grabbing a single commit and not having the rest of the references available to make the comparison.
Exactly what my super-wordy title says. I have a GitHub action running in one of my template repos, and after squashing and merging my already-rebased single-commit PR, the action seems to fail with the following: