From 0c7cf3e6a08ed559bd48150e3475eacd8207015a Mon Sep 17 00:00:00 2001 From: loopever Date: Mon, 17 Aug 2020 18:11:20 +0800 Subject: [PATCH 1/5] create a Dockerfile an extended decription --- action-a/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 action-a/Dockerfile diff --git a/action-a/Dockerfile b/action-a/Dockerfile new file mode 100644 index 0000000..44e85cb --- /dev/null +++ b/action-a/Dockerfile @@ -0,0 +1,5 @@ +FROM debian:9.5-slim + +ADD entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] From 1727f55381804b307b42cf326b2d4132e18deb45 Mon Sep 17 00:00:00 2001 From: loopever Date: Mon, 17 Aug 2020 18:19:44 +0800 Subject: [PATCH 2/5] Create 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..7d3abef --- /dev/null +++ b/action-a/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/sh -l + +sh -c "echo Hello world my name is $INPUT_MY_NAME" From a7887c98874e742c482de73ae9085c50f0886222 Mon Sep 17 00:00:00 2001 From: loopever Date: Mon, 17 Aug 2020 18:22:07 +0800 Subject: [PATCH 3/5] Create testPR.txt --- testPR.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 testPR.txt diff --git a/testPR.txt b/testPR.txt new file mode 100644 index 0000000..e551bdd --- /dev/null +++ b/testPR.txt @@ -0,0 +1 @@ +testPR From a6735f9453dab0261d875ccb0f7f04c2c660d787 Mon Sep 17 00:00:00 2001 From: loopever Date: Mon, 17 Aug 2020 18:26:50 +0800 Subject: [PATCH 4/5] Create action.yml --- action-a/action.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 action-a/action.yml diff --git a/action-a/action.yml b/action-a/action.yml new file mode 100644 index 0000000..3438607 --- /dev/null +++ b/action-a/action.yml @@ -0,0 +1,17 @@ +name: "Hello Actions" +description: "Greet someone" +author: "octocat@github.com" + +inputs: + MY_NAME: + description: "Who to greet" + required: true + default: "World" + +runs: + using: "docker" + image: "Dockerfile" + +branding: + icon: "mic" + color: "purple" From c7ef817d711376b824ec8a7f3c3680bbfcb1445c Mon Sep 17 00:00:00 2001 From: loopever Date: Mon, 17 Aug 2020 18:28:09 +0800 Subject: [PATCH 5/5] Create main.yml --- .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..f2809f7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,2 @@ +name: A workflow for my Hello World file +on: push