From 817b9da73376873ccd848027c63148d33b75e18c Mon Sep 17 00:00:00 2001 From: matteveland Date: Sun, 6 Dec 2020 10:18:12 -0800 Subject: [PATCH 1/4] 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 ed72de9ffcb89f922af5d74cd05b515a4af184f7 Mon Sep 17 00:00:00 2001 From: matteveland Date: Sun, 6 Dec 2020 10:20:08 -0800 Subject: [PATCH 2/4] 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 3a5544d9542d909195e0ba22681ea5099e5e82fb Mon Sep 17 00:00:00 2001 From: matteveland Date: Sun, 6 Dec 2020 10:21:24 -0800 Subject: [PATCH 3/4] 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 f92a13b888010b0f8e751a705dfa0a8b17a69b31 Mon Sep 17 00:00:00 2001 From: matteveland Date: Sun, 6 Dec 2020 10:28:18 -0800 Subject: [PATCH 4/4] 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