From 2863a5286625edf4b9ec11d7d7ffb814a38d73ba Mon Sep 17 00:00:00 2001 From: dbvc Date: Fri, 6 Sep 2019 01:39:42 +0800 Subject: [PATCH 1/4] feat: add Dockerfile --- action-a/Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 action-a/Dockerfile diff --git a/action-a/Dockerfile b/action-a/Dockerfile new file mode 100644 index 0000000..05ff2ca --- /dev/null +++ b/action-a/Dockerfile @@ -0,0 +1,14 @@ +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/octocat/hello-world" +LABEL "homepage"="http://github.com/actions" +LABEL "maintainer"="Octocat " + +ADD entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] From 003c050700a2cb77c718acf7107b35c7cb26bd87 Mon Sep 17 00:00:00 2001 From: dbvc Date: Fri, 6 Sep 2019 01:42:11 +0800 Subject: [PATCH 2/4] feat: add entrypoint.sh --- action-a/entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 action-a/entrypoint.sh diff --git a/action-a/entrypoint.sh b/action-a/entrypoint.sh new file mode 100644 index 0000000..d262d66 --- /dev/null +++ b/action-a/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/sh -l + +sh -c "echo Hello world my name is $MY_NAME" From 5ee7505105151b878b6f48ad3b35fa1a92f8ce30 Mon Sep 17 00:00:00 2001 From: dbvc Date: Fri, 6 Sep 2019 01:43:36 +0800 Subject: [PATCH 3/4] feat: add workflow file --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..e6f49a8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,2 @@ +name: A workflow for my Hello World file +on: push \ No newline at end of file From 2956a12295ae0cdf9853df448752d49d7627f063 Mon Sep 17 00:00:00 2001 From: dbvc Date: Fri, 6 Sep 2019 01:44:32 +0800 Subject: [PATCH 4/4] feat: add action --- .github/workflows/main.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e6f49a8..d92a685 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,2 +1,12 @@ name: A workflow for my Hello World file -on: push \ No newline at end of file +on: push + +jobs: + build: + name: Hello world action + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: ./action-a + env: + MY_NAME: "Mona"