From dd2cab47a2fe8f323f1d2f8ed1c79d1cd2ca3d14 Mon Sep 17 00:00:00 2001 From: Freey0 Date: Sat, 1 May 2021 13:23:50 +0800 Subject: [PATCH 1/3] add: 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 0421aedb705811c9961c5b74fbf5ee586713f778 Mon Sep 17 00:00:00 2001 From: Freey0 Date: Sat, 1 May 2021 13:32:46 +0800 Subject: [PATCH 2/3] add: entrypoint.sh --- action-a/entrypoint.sh | 2 ++ 1 file changed, 2 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..f82141a --- /dev/null +++ b/action-a/entrypoint.sh @@ -0,0 +1,2 @@ +#!/bin/sh -l +sh -c echo Hello World my name is $"INPUT_MY_NAME" From fccadf0bec231b0e067b34a7a85e7b1d50ad4340 Mon Sep 17 00:00:00 2001 From: Freey0 Date: Sat, 1 May 2021 13:42:14 +0800 Subject: [PATCH 3/3] add: 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..9a5056e --- /dev/null +++ b/action-a/action.yml @@ -0,0 +1,17 @@ +name: "Hello Action" +description: "Greet someone" +author: "freey7955@gmail.com" + +inputs: + INPUT_MY_NAME: + description: "Who to greet" + required: true + default: "World" + +runs: + using: "docker" + image: "Dockerfile" + +branding: + icon: "mic" + color: "purple"