From 72fed7c8ea16d305e86b58fba8ebe743e6c0c218 Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Fri, 15 Sep 2023 11:32:44 -0400 Subject: [PATCH] Clarify entrypoint --- entrypoint.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 3fee027..22c9865 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,12 @@ #!/bin/sh -l -echo "Hello $1" -time=$(date) -echo "time=$time" >> $GITHUB_OUTPUT +# Use INPUT_ to get the value of an input +GREETING="Hello, $INPUT_WHO_TO_GREET!" + +# Use workflow commands to do things like set debug messages +echo "::notice file=entrypoint.sh,line=7::$GREETING" + +# Write outputs to the $GITHUB_OUTPUT file +echo "greeting=$GREETING" >> "$GITHUB_OUTPUT" + +exit 0