From f3a03fe92be0cb13c61758a6c44a025aeb60e857 Mon Sep 17 00:00:00 2001 From: Anisha <62882541+AnishaM7@users.noreply.github.com> Date: Tue, 21 Sep 2021 10:18:22 +0530 Subject: [PATCH 1/5] 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 8dfb4cfa247d16a74f373555535eed4a65d7b8ce Mon Sep 17 00:00:00 2001 From: Anisha <62882541+AnishaM7@users.noreply.github.com> Date: Tue, 21 Sep 2021 10:22:57 +0530 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..0bbd7a1 --- /dev/null +++ b/action-a/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/sh -l + +sh -c "echo Hello world my name is $Anishu<3" From a29d563a590dc37346658045584fd14d3a500407 Mon Sep 17 00:00:00 2001 From: Anisha <62882541+AnishaM7@users.noreply.github.com> Date: Tue, 21 Sep 2021 10:28:42 +0530 Subject: [PATCH 3/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 3acffaa958bf34bfbd78336b6171c9e5b1a94945 Mon Sep 17 00:00:00 2001 From: Anisha <62882541+AnishaM7@users.noreply.github.com> Date: Tue, 21 Sep 2021 10:29:42 +0530 Subject: [PATCH 4/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 From 4ecf3f6ac3471cb2b9f476904cae7cf865c757f8 Mon Sep 17 00:00:00 2001 From: Anisha <62882541+AnishaM7@users.noreply.github.com> Date: Tue, 21 Sep 2021 10:32:12 +0530 Subject: [PATCH 5/5] Update main.yml --- .github/workflows/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f2809f7..81b91bd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,2 +1,11 @@ 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"