commit bd2f61ac51fc68972b98c60d08150e77132670a0 Author: Rachael Sewell Date: Sat Aug 3 21:11:09 2019 -0700 Initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5f5e0ef --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM alpine:3.10 + +COPY entrypoint.sh /entrypoint.sh + +ENTRYPOINT ["/entrypoint.sh"] diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..17efce2 --- /dev/null +++ b/action.yml @@ -0,0 +1,15 @@ +name: 'Hello World' +description: 'Greet someone and record the time' +inputs: + who-to-greet: # id of input + description: 'Who to greet' + required: true + default: 'World' +outputs: + time: # id of output + description: 'The time we we greeted you' +runs: + using: 'docker' + image: 'Dockerfile' + args: + - ${{ inputs.who-to-greet }} diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..63e8f7d --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,5 @@ +#!/bin/sh -l + +echo "Hello $1" +time=$(date) +echo "##[set-output name=time]$time"