From 4400ded79da70681534ea40c8c4ba75cba2d977c Mon Sep 17 00:00:00 2001 From: jane-k <64597426+jane-k@users.noreply.github.com> Date: Thu, 5 Aug 2021 21:42:06 +0900 Subject: [PATCH 1/6] Create Dockerfile --- 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 8db8c4a8ff76b17a366794f66cdacf63e706862d Mon Sep 17 00:00:00 2001 From: jane-k <64597426+jane-k@users.noreply.github.com> Date: Thu, 5 Aug 2021 21:44:17 +0900 Subject: [PATCH 2/6] 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 783d20efce4324e705b1524d336fadda021d617e Mon Sep 17 00:00:00 2001 From: jane-k <64597426+jane-k@users.noreply.github.com> Date: Thu, 5 Aug 2021 21:45:23 +0900 Subject: [PATCH 3/6] 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 a4e57e467b3625e1fef60d756e2ff4f787a3dc06 Mon Sep 17 00:00:00 2001 From: jane-k <64597426+jane-k@users.noreply.github.com> Date: Thu, 5 Aug 2021 21:45:48 +0900 Subject: [PATCH 4/6] 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 From 02d36b2d0f3ec3707413c0492940240671e8a4a0 Mon Sep 17 00:00:00 2001 From: jane-k <64597426+jane-k@users.noreply.github.com> Date: Thu, 5 Aug 2021 21:47:02 +0900 Subject: [PATCH 5/6] Update main.yml --- .github/workflows/main.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f2809f7..1f14183 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,2 +1,9 @@ -name: A workflow for my Hello World file -on: push +jobs: + build: + name: Hello world action + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: ./action-a + with: + MY_NAME: "Mona" From 77041e5ca5d675f3e164879388ac13aa7a86b6ea Mon Sep 17 00:00:00 2001 From: jane-k <64597426+jane-k@users.noreply.github.com> Date: Thu, 5 Aug 2021 21:56:22 +0900 Subject: [PATCH 6/6] Create myself --- introduce/myself | 1 + 1 file changed, 1 insertion(+) create mode 100644 introduce/myself diff --git a/introduce/myself b/introduce/myself new file mode 100644 index 0000000..823e750 --- /dev/null +++ b/introduce/myself @@ -0,0 +1 @@ +My name is Jane-K.