File tree Expand file tree Collapse file tree 3 files changed +41
-0
lines changed
Expand file tree Collapse file tree 3 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM alpine:latest
2+
3+ LABEL "com.github.actions.name" ="git Actions"
4+ LABEL "com.github.actions.description" ="Run git commands"
5+ LABEL "com.github.actions.icon" ="mic"
6+ LABEL "com.github.actions.color" ="yellow"
7+
8+ LABEL "repository" ="http://github.com/srt32/git-actions"
9+ LABEL "homepage" ="http://github.com/srt32/git-actions"
10+
11+ RUN apk add --no-cache git
12+
13+ ADD entrypoint.sh /
14+ RUN chmod +x /entrypoint.sh
15+
16+ ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change 1+ # GitHub Action for running git commands
2+
3+ ```
4+ workflow "My build" {
5+ resolves = [
6+ "git command",
7+ ]
8+ on = "push"
9+ }
10+
11+ action "git command" {
12+ uses = "srt32/git-action@master"
13+ args = "git status"
14+ }
15+ ```
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+
4+ echo " #################################################"
5+ echo " Starting the git Action"
6+
7+ sh -c " $* "
8+
9+ echo " #################################################"
10+ echo " Completed the git Action"
You can’t perform that action at this time.
0 commit comments