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() }}