-
Notifications
You must be signed in to change notification settings - Fork 39
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
[Breaking] Allow multiple git commands #4
base: master
Are you sure you want to change the base?
Conversation
@@ -8,7 +8,7 @@ LABEL "com.github.actions.color"="yellow" | |||
LABEL "repository"="http://github.com/srt32/git-actions" | |||
LABEL "homepage"="http://github.com/srt32/git-actions" | |||
|
|||
RUN apk add --no-cache git bash git-subtree | |||
RUN apk add --no-cache git git-subtree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ArnaudRinquin is there not a need for bash
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Na, since the entrypoint file changes the shebang to #!/bin/sh
|
||
action "git command" { | ||
uses = "srt32/[email protected]" | ||
args = ["status", "show"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great docs updates ;)
echo "Failure running 'git $cmd', exited with $exit_code" | ||
exit $exit_code | ||
fi | ||
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind adding a new line here?
@ArnaudRinquin I fixed up the merge conflicts and left a few questions. I do agree this change would be great even though it's breaking. Once we get this change merged, I can release a new update to the action. 🙇 |
Allow multiple git commands to be run. It's based on
actions/bin/sh
.It also prefixes the commands with
git
so you don't have to, as inspired by the officialactions/docker