From da7a85cc1100a6cc374069010c0860375274df78 Mon Sep 17 00:00:00 2001 From: Leandro Echevarria Date: Thu, 11 Feb 2021 12:09:56 -0300 Subject: [PATCH] Added the flag if: always() to the get commit hash step. --- .github/workflows/example.yml | 4 +++- README.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index e7a9e7a..822652d 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -8,7 +8,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" + - name: Get commit hash + if: ${{ always() }} + run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" id: slug - name: Chat Setup if: ${{ always() }} diff --git a/README.md b/README.md index 191728e..79a1ad5 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" + - name: Get commit hash + if: ${{ always() }} + run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" id: slug - name: Chat Setup if: ${{ always() }}