diff --git a/.github/workflows/deploy-canary.yml b/.github/workflows/deploy-canary.yml index 37cf388226c..43deda40bb0 100644 --- a/.github/workflows/deploy-canary.yml +++ b/.github/workflows/deploy-canary.yml @@ -13,8 +13,6 @@ jobs: react: if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom' runs-on: ubuntu-20.04 - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} steps: - uses: actions/checkout@v2 with: @@ -101,12 +99,12 @@ jobs: - uses: act10ns/slack@v1 with: status: ${{ job.status }} + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} if: failure() web-components: if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom' runs-on: ubuntu-20.04 - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} steps: - uses: actions/checkout@v2 with: @@ -211,12 +209,12 @@ jobs: - uses: act10ns/slack@v1 with: status: ${{ job.status }} + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} if: failure() services: if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom' runs-on: ubuntu-20.04 - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} steps: - uses: actions/checkout@v2 with: @@ -263,12 +261,12 @@ jobs: - uses: act10ns/slack@v1 with: status: ${{ job.status }} + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} if: failure() utilities: if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom' runs-on: ubuntu-20.04 - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} steps: - uses: actions/checkout@v2 with: @@ -314,4 +312,6 @@ jobs: - uses: act10ns/slack@v1 with: status: ${{ job.status }} + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} if: failure() diff --git a/.github/workflows/deploy-next.yml b/.github/workflows/deploy-next.yml index 00abf31a221..9d751347908 100644 --- a/.github/workflows/deploy-next.yml +++ b/.github/workflows/deploy-next.yml @@ -13,8 +13,6 @@ jobs: react: if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom' runs-on: ubuntu-20.04 - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} steps: - uses: actions/checkout@v2 with: @@ -82,12 +80,12 @@ jobs: - uses: act10ns/slack@v1 with: status: ${{ job.status }} + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} if: failure() web-components: if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom' runs-on: ubuntu-20.04 - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} steps: - uses: actions/checkout@v2 with: @@ -155,4 +153,6 @@ jobs: - uses: act10ns/slack@v1 with: status: ${{ job.status }} + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} if: failure()