Initial work on action.yml
This commit is contained in:
20
action.yml
20
action.yml
@@ -1,21 +1,13 @@
|
|||||||
name: 'Hello World'
|
name: 'Coverage'
|
||||||
description: 'Greet someone'
|
description: 'Publish diff coverage report as PR comment
|
||||||
inputs:
|
inputs:
|
||||||
who-to-greet: # id of input
|
GITHUB_TOKEN: # id of input
|
||||||
description: 'Who to greet'
|
description: 'GitHub token'
|
||||||
required: true
|
required: true
|
||||||
default: 'World'
|
|
||||||
outputs:
|
|
||||||
random-number:
|
|
||||||
description: "Random number"
|
|
||||||
value: ${{ steps.random-number-generator.outputs.random-id }}
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- run: echo Hello ${{ inputs.who-to-greet }}.
|
- run: echo ${{ inputs.GITHUB_TOKEN }} | gh auth login --with-token
|
||||||
shell: bash
|
shell: bash
|
||||||
- id: random-number-generator
|
- run: echo "AAAA" && gh repo view && echo "BBBB"
|
||||||
run: echo "::set-output name=random-id::$(echo $RANDOM)"
|
|
||||||
shell: bash
|
|
||||||
- run: ${{ github.action_path }}/goodbye.sh
|
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user