Skip to content

Commit

Permalink
Merge pull request #5075 from storybooks/tech/try-github-workflos
Browse files Browse the repository at this point in the history
Tech/try GitHub workflows
  • Loading branch information
ndelangen committed Jan 14, 2019
2 parents fe972a9 + 2780a0a commit a3b2454
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/main.workflow
@@ -0,0 +1,12 @@
workflow "New workflow" {
on = "push"
resolves = ["Hello World"]
}

action "Hello World" {
uses = "./ci/action-a"
env = {
MY_NAME = "Mona"
}
args = "\"Hello world, I'm $MY_NAME!\""
}
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -260,3 +260,5 @@ Support us with a monthly donation and help us continue our activities. \[[Becom
## License

[MIT](https://github.com/storybooks/storybook/blob/master/LICENSE)

-the end-
13 changes: 13 additions & 0 deletions ci/action-a/Dockerfile
@@ -0,0 +1,13 @@
FROM debian:9.5-slim

LABEL "com.github.actions.name"="Hello World"
LABEL "com.github.actions.description"="Write arguments to the standard output"
LABEL "com.github.actions.icon"="mic"
LABEL "com.github.actions.color"="purple"

LABEL "repository"="http://github.com/storybooks/storybook"
LABEL "homepage"="http://github.com/storybooks"
LABEL "maintainer"="Norbert de Langen <ndelangen@me.com>"

ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
Empty file added ci/action-a/README.md
Empty file.
3 changes: 3 additions & 0 deletions ci/action-a/entrypoint.sh
@@ -0,0 +1,3 @@
#!/bin/sh -l

sh -c "echo $*"

0 comments on commit a3b2454

Please sign in to comment.