From 39599ba6b042d2058ed31d3848136952db8ca790 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 18 Sep 2025 10:17:40 -0400 Subject: [PATCH] Adding action --- action.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..943e5c4 --- /dev/null +++ b/action.yml @@ -0,0 +1,34 @@ +name: 'Hello World' +description: 'Greet someone' +inputs: + who-to-greet: # id of input + description: 'Who to greet' + required: true + default: 'World' +outputs: + random-number: + description: "Random number" + value: ${{ steps.random-number-generator.outputs.random-number }} +runs: + using: "composite" + steps: + - name: Set Greeting + run: echo "Hello $INPUT_WHO_TO_GREET." + shell: bash + env: + INPUT_WHO_TO_GREET: ${{ inputs.who-to-greet }} + + - name: Random Number Generator + id: random-number-generator + run: echo "random-number=$(echo $RANDOM)" >> $GITEA_OUTPUT + shell: bash + + - name: Set GitHub Path + run: echo "$GITEA_ACTION_PATH" >> $GITEA_OUTPUT + shell: bash + env: + GITEA_ACTION_PATH: ${{ gitea.action_path }} + + - name: Run goodbye.sh + run: goodbye.sh + shell: bash