From 03f87e55ce9accd530a2d0de0f6bede5cf00f946 Mon Sep 17 00:00:00 2001 From: aneta-ii <70603249+aneta-ii@users.noreply.github.com> Date: Fri, 12 Feb 2021 16:57:32 +0200 Subject: [PATCH 1/8] 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 0e569cefef2c1a9a0c7a9dc048d8b9885413f3d2 Mon Sep 17 00:00:00 2001 From: aneta-ii <70603249+aneta-ii@users.noreply.github.com> Date: Fri, 12 Feb 2021 16:59:44 +0200 Subject: [PATCH 2/8] 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 5f13f9ec840a6e0ab4e83d50066b07a988426a1a Mon Sep 17 00:00:00 2001 From: aneta-ii <70603249+aneta-ii@users.noreply.github.com> Date: Fri, 12 Feb 2021 17:00:48 +0200 Subject: [PATCH 3/8] 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 c58dca67b0010e886dbe4fbcda749756a8e1c1e3 Mon Sep 17 00:00:00 2001 From: aneta-ii <70603249+aneta-ii@users.noreply.github.com> Date: Fri, 12 Feb 2021 17:04:38 +0200 Subject: [PATCH 4/8] 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 3ddf8b09ddee5defb4414e6b839bd3bbff1be4f7 Mon Sep 17 00:00:00 2001 From: aneta-ii <70603249+aneta-ii@users.noreply.github.com> Date: Fri, 12 Feb 2021 17:06:56 +0200 Subject: [PATCH 5/8] 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 c5f1b5b335f80d8bfd1e0d9f56f0065c782e6658 Mon Sep 17 00:00:00 2001 From: aneta-ii <70603249+aneta-ii@users.noreply.github.com> Date: Fri, 12 Feb 2021 17:11:28 +0200 Subject: [PATCH 6/8] Update action.yml --- action-a/action.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/action-a/action.yml b/action-a/action.yml index 3438607..d3071ad 100644 --- a/action-a/action.yml +++ b/action-a/action.yml @@ -15,3 +15,13 @@ runs: branding: icon: "mic" color: "purple" + +jobs: + build: + name: Hello world action + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: ./action-a + with: + MY_NAME: "Mona" From dfadb9854c2e58bc71ac9548cb28446cfa3b8701 Mon Sep 17 00:00:00 2001 From: aneta-ii <70603249+aneta-ii@users.noreply.github.com> Date: Fri, 12 Feb 2021 17:13:11 +0200 Subject: [PATCH 7/8] Update action.yml --- action-a/action.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/action-a/action.yml b/action-a/action.yml index d3071ad..0f49df0 100644 --- a/action-a/action.yml +++ b/action-a/action.yml @@ -15,13 +15,4 @@ runs: branding: icon: "mic" color: "purple" - -jobs: - build: - name: Hello world action - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: ./action-a - with: - MY_NAME: "Mona" + From 6fa495a9ad3caaa1e89bd3255bf36ca30a7b06db Mon Sep 17 00:00:00 2001 From: aneta-ii <70603249+aneta-ii@users.noreply.github.com> Date: Fri, 12 Feb 2021 17:15:11 +0200 Subject: [PATCH 8/8] Update main.yml --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1f14183..ccfec97 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,3 +1,6 @@ +name: A workflow for my Hello World file +on: push + jobs: build: name: Hello world action