Skip to content

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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gmeligio
Copy link

@gmeligio gmeligio commented Apr 5, 2025

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
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.

1 participant