Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: fix condition on which reformats are re-committed #66

Merged
merged 2 commits into from
Jan 17, 2024
Merged

Conversation

NickCrews
Copy link
Collaborator

Fixes the issue described at #65 (comment)

If you look through the logs you can see all the git commands that were run in CI. If I emulate those locally I can repro the problem. The old command exit coded 1, even with a clean working tree.

I think what the problem was: actions/checkout uses a fetch-depth of 0, so we only get the most recent commit. So comparing vs HEAD didn't work. But not sure about this. All I know is that this new command works in that test environment, and in my normal dev repo. It's a more common git command too, so that is nice.

@NickCrews NickCrews merged commit ffdbfc8 into master Jan 17, 2024
17 checks passed
@NickCrews NickCrews deleted the ci_test branch January 17, 2024 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant