From ae1e2c3dcde14df5905ae93a4dd1d74b702a757f Mon Sep 17 00:00:00 2001 From: Darren Ethier Date: Wed, 29 Jul 2020 07:36:33 -0400 Subject: [PATCH] Update wp.deploy workflow adding slack hook (https://github.com/woocommerce/woocommerce-blocks/pull/2939) This will notify rubik's slack channel when this workflow starts and finishes. --- .../.github/workflows/wordpress-deploy.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/woocommerce-blocks/.github/workflows/wordpress-deploy.yml b/plugins/woocommerce-blocks/.github/workflows/wordpress-deploy.yml index a7c066f4a83..05843126889 100644 --- a/plugins/woocommerce-blocks/.github/workflows/wordpress-deploy.yml +++ b/plugins/woocommerce-blocks/.github/workflows/wordpress-deploy.yml @@ -6,7 +6,13 @@ jobs: tag: name: New Release runs-on: ubuntu-latest + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} steps: + - uses: act10ns/slack@v1 + with: + status: starting + if: always() - name: Checkout code uses: actions/checkout@v2 - name: WordPress Plugin Deploy @@ -27,3 +33,8 @@ jobs: asset_path: ${{github.workspace}}/woo-gutenberg-products-block.zip asset_name: woo-gutenberg-products-block.zip asset_content_type: application/zip + - uses: act10ns/slack@v1 + with: + status: ${{ job.status }} + steps: ${{ toJson(steps) }} + if: always()