diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..ccfec97 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,12 @@ +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" diff --git a/action-a/Dockerfile b/action-a/Dockerfile new file mode 100644 index 0000000..7c5a921 --- /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" ] \ No newline at end of file diff --git a/action-a/action.yml b/action-a/action.yml new file mode 100644 index 0000000..be8c207 --- /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" \ No newline at end of file diff --git a/action-a/entrypoint.sh b/action-a/entrypoint.sh new file mode 100644 index 0000000..7b9611b --- /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" \ No newline at end of file