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

[Breaking] Allow multiple git commands #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ArnaudRinquin
Copy link

@ArnaudRinquin ArnaudRinquin commented Feb 18, 2019

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 official actions/docker

@@ -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
Copy link
Owner

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?

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"]
Copy link
Owner

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
Copy link
Owner

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?

@srt32
Copy link
Owner

srt32 commented Mar 4, 2019

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

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.

4 participants