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

Format workflow: check before committing #382

Merged
merged 2 commits into from
Dec 11, 2024
Merged

Conversation

gcatanese
Copy link
Contributor

The format workflow fails when there are no changes to commit.

This PR updates the workflow to check if github.event.commits is not empty before attempting the git commit.

@gcatanese gcatanese requested a review from a team as a code owner November 29, 2024 10:17
.github/workflows/format.yml Outdated Show resolved Hide resolved
.github/workflows/format.yml Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Dec 11, 2024

@gcatanese gcatanese merged commit 1ec053e into main Dec 11, 2024
3 checks passed
@gcatanese gcatanese deleted the format-workflow-conditions branch December 11, 2024 13:21
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.

2 participants