Skip to content

Commit 5c8dc42

Browse files
committed
Initial commit
0 parents  commit 5c8dc42

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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"]

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
```

entrypoint.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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"

0 commit comments

Comments
 (0)