From b85dc548193fcc976f3aa961691c709cbd9aefcb Mon Sep 17 00:00:00 2001 From: Joachim Jablon Date: Thu, 15 Jul 2021 21:12:15 +0200 Subject: [PATCH] Initial work on action.yml --- action.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/action.yml b/action.yml index 397a7a1..6568648 100644 --- a/action.yml +++ b/action.yml @@ -1,21 +1,13 @@ -name: 'Hello World' -description: 'Greet someone' +name: 'Coverage' +description: 'Publish diff coverage report as PR comment inputs: - who-to-greet: # id of input - description: 'Who to greet' + GITHUB_TOKEN: # id of input + description: 'GitHub token' 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 }}. + - run: echo ${{ inputs.GITHUB_TOKEN }} | gh auth login --with-token shell: bash - - id: random-number-generator - run: echo "::set-output name=random-id::$(echo $RANDOM)" - shell: bash - - run: ${{ github.action_path }}/goodbye.sh + - run: echo "AAAA" && gh repo view && echo "BBBB" shell: bash