Skip to content

fix: only run git if push or fail are enabled#152

Open
gmeligio wants to merge 1 commit into
terraform-docs:mainfrom
gmeligio:git_condition
Open

fix: only run git if push or fail are enabled#152
gmeligio wants to merge 1 commit into
terraform-docs:mainfrom
gmeligio:git_condition

Conversation

@gmeligio

@gmeligio gmeligio commented Apr 5, 2025

Copy link
Copy Markdown

Description of your changes

We can run the git commands only if the corresponding git features are enabled when calling the action. The background about this pull request is in the issue delegate git responsability to other github actions.

Related to #151

I have:

How has this code been tested

I haven't tested this change. I thought about how to test if git was disabled, that no git command was run, but it would involve adding an output to the action only for the sake of testing. Please let me know if you have any suggestions on how to test this change.

Signed-off-by: Eligio Mariño <22875166+gmeligio@users.noreply.github.com>
@gmeligio
gmeligio marked this pull request as ready for review April 5, 2025 12:05
@LukoJy3D

Copy link
Copy Markdown

+1 on this, it should not be stage by default escpecially when commits cant be verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants