From 76b1401d16b6c222c1104721352bccd46d41f7e9 Mon Sep 17 00:00:00 2001 From: Kirill Chikalin Date: Thu, 20 Mar 2025 07:38:58 +0300 Subject: [PATCH] Add test goodbye script --- action.yml | 34 ++++++++++++++++++++++++++++++++++ goodbye.sh | 1 + 2 files changed, 35 insertions(+) create mode 100644 action.yml create mode 100755 goodbye.sh diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..298ab0b --- /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)" >> $GITHUB_OUTPUT + shell: bash + + - name: Set GitHub Path + run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH + shell: bash + env: + GITHUB_ACTION_PATH: ${{ github.action_path }} + + - name: Run goodbye.sh + run: goodbye.sh + shell: bash \ No newline at end of file diff --git a/goodbye.sh b/goodbye.sh new file mode 100755 index 0000000..341b253 --- /dev/null +++ b/goodbye.sh @@ -0,0 +1 @@ +echo Goodbye