From d5e1e3671aa9a3aac0da3f9f028879135a65f70f Mon Sep 17 00:00:00 2001 From: makame Date: Sat, 22 Feb 2020 14:37:42 +0100 Subject: [PATCH] fix commit message --- .github/workflows/npm_develop.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm_develop.yml b/.github/workflows/npm_develop.yml index 42fcbb3..2fd09e9 100644 --- a/.github/workflows/npm_develop.yml +++ b/.github/workflows/npm_develop.yml @@ -25,9 +25,10 @@ jobs: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - name: get commit message - run: echo ::set-env name=commitmsg::$(git log --format=%B -n 1 ${{ github.event.after }}) + id: get_commitmsg + run: echo ::set-output name=commitmsg::$(git log --format=%B -n 1 ${{ github.event.after }}) - name: show commit message - run : echo $commitmsg + run : echo ${{ steps.get_commitmsg.outputs.commitmsg }} - name: send a success message uses: appleboy/telegram-action@master with: @@ -38,7 +39,8 @@ jobs: SUCCESSFULLY - test Triggered by ${{ github.event_name }} event https://github.com/makamekm/figma-react/actions/runs/${{ github.run_id }} - $commitmsg + --- + ${{ steps.get_commitmsg.outputs.commitmsg }} - name: send a fail message uses: appleboy/telegram-action@master if: failure() @@ -50,4 +52,5 @@ jobs: FAILED - test Triggered by ${{ github.event_name }} event https://github.com/makamekm/figma-react/actions/runs/${{ github.run_id }} - $commitmsg + --- + ${{ steps.get_commitmsg.outputs.commitmsg }}