From e5b1fe971903f2c164547eb02e327e01a125440a Mon Sep 17 00:00:00 2001 From: Rachael Graham Date: Fri, 15 Nov 2024 15:27:32 -0600 Subject: [PATCH] Update push-docs.yaml --- .github/workflows/push-docs.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push-docs.yaml b/.github/workflows/push-docs.yaml index e3fc45c56f1..bacc176f521 100644 --- a/.github/workflows/push-docs.yaml +++ b/.github/workflows/push-docs.yaml @@ -25,6 +25,8 @@ jobs: copy-docs: runs-on: ubuntu-latest + outputs: + minor: ${{ steps.version-variables.outputs.minor }} steps: - name: Get LTS branch version id: lts-version @@ -162,16 +164,17 @@ jobs: slack-notification: runs-on: ubuntu-latest - needs: - - copy-docs + if: ${{ always() }} + needs: copy-docs steps: - name: Notify on workflow success if: | needs.copy-docs.result == 'success' env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + VERSION: ${{needs.copy-docs.outputs.minor}} run: | - MESSAGE="✅ *Success:* Automated copy of reference docs for ${{ steps.version-variables.outputs.minor }} was successful. " + MESSAGE="✅ *Success:* Automated copy of reference docs for ${VERSION} was successful. " curl \ -d "text=$MESSAGE" \ @@ -185,7 +188,7 @@ jobs: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} run: | JOB_URL=https://github.com/solo-io/gloo/actions/runs/${GITHUB_RUN_ID} - MESSAGE="❌ *Failure:* Automated copy of reference docs for ${{ steps.version-variables.outputs.minor }} failed. <${JOB_URL}|Review the workflow failure>" + MESSAGE="❌ *Failure:* Automated copy of reference docs for ${VERSION} failed. <${JOB_URL}|Review the workflow failure>" curl \ -d "text=$MESSAGE" \