From 8f4e1a176932d4d152869fe97aad260e227875f1 Mon Sep 17 00:00:00 2001 From: Shruti Bhattacharya <91482256+Shrutiind02@users.noreply.github.com> Date: Sat, 13 Nov 2021 19:19:21 +0530 Subject: [PATCH 1/6] Create Docker-file --- action-a/Docker-file | 1 + 1 file changed, 1 insertion(+) create mode 100644 action-a/Docker-file diff --git a/action-a/Docker-file b/action-a/Docker-file new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/action-a/Docker-file @@ -0,0 +1 @@ + From 93c9ebb6e39833eb915c2058891708448c9151d3 Mon Sep 17 00:00:00 2001 From: Shruti Bhattacharya <91482256+Shrutiind02@users.noreply.github.com> Date: Sat, 13 Nov 2021 19:20:11 +0530 Subject: [PATCH 2/6] Rename Docker-file to Dockerfile --- action-a/{Docker-file => Dockerfile} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename action-a/{Docker-file => Dockerfile} (100%) diff --git a/action-a/Docker-file b/action-a/Dockerfile similarity index 100% rename from action-a/Docker-file rename to action-a/Dockerfile From adeb7c671c89e4986aa5c9e2c8e067ec6bc4386c Mon Sep 17 00:00:00 2001 From: Shruti Bhattacharya <91482256+Shrutiind02@users.noreply.github.com> Date: Sat, 13 Nov 2021 19:20:57 +0530 Subject: [PATCH 3/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 e9aa8413c1e83c80eabca8d25b8e74a44462cd31 Mon Sep 17 00:00:00 2001 From: Shruti Bhattacharya <91482256+Shrutiind02@users.noreply.github.com> Date: Sat, 13 Nov 2021 19:21:29 +0530 Subject: [PATCH 4/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 b0d66bcef2270f87a7403961d34417b80583be45 Mon Sep 17 00:00:00 2001 From: Shruti Bhattacharya <91482256+Shrutiind02@users.noreply.github.com> Date: Sat, 13 Nov 2021 19:22:13 +0530 Subject: [PATCH 5/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 9f5a02afbc574c85073d48f8ef26337856833eda Mon Sep 17 00:00:00 2001 From: Shruti Bhattacharya <91482256+Shrutiind02@users.noreply.github.com> Date: Sat, 13 Nov 2021 19:22:56 +0530 Subject: [PATCH 6/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"