mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-24 00:48:39 +08:00
28 lines
728 B
YAML
28 lines
728 B
YAML
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-id }}
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- run: echo Hello ${{ inputs.who-to-greet }}.
|
|
shell: bash
|
|
- id: random-number-generator
|
|
run: echo "::set-output name=random-id::$(echo $RANDOM)"
|
|
shell: bash
|
|
- id: set-variable
|
|
run: test1=1 && echo test1 is $test1
|
|
shell: bash
|
|
- id: get-variable
|
|
run: echo test111 is $test1
|
|
shell: bash
|
|
- run: ${{ github.action_path }}/goodbye.sh
|
|
shell: bash
|