From e79d57928ad47eed08c5df03581856fffe11405e Mon Sep 17 00:00:00 2001 From: Chris Oloff Date: Wed, 1 Jan 2025 16:37:06 +0200 Subject: [PATCH] Update config to use properly named input param --- action.yml | 10 +++++----- entrypoint.sh | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 25caa1f..18cc0f3 100644 --- a/action.yml +++ b/action.yml @@ -2,15 +2,15 @@ name: "Hello World" description: "Greet someone and record the time" inputs: - who-to-greet: # id of input - description: "Who to greet" + kust_config: # id of input + description: "the kustomization configuration, e.g. kustomize/overlays/testing" required: true - default: "World" + default: "kustomize/overlays/testing" outputs: time: # id of output - description: "The time we greeted you" + description: "The time we started" runs: using: "docker" image: "Dockerfile" args: - - ${{ inputs.who-to-greet }} + - ${{ inputs.kust_config }} diff --git a/entrypoint.sh b/entrypoint.sh index d0fd436..12ce77a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,7 @@ #!/bin/sh -l -echo "Hello $1" +set -e # fail if any command fails + time=$(date) echo "time=$time" >>"$GITHUB_OUTPUT" echo "env:"