From 754086c3a55563d14a6717a11cc1082d0cfa88d8 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Wed, 10 Jun 2020 08:58:35 +0100 Subject: [PATCH] Re-enabled Slack build notifications no issue - Switched to using my own implementation because the rest did not meet our requirements --- .github/workflows/test.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 32e4adafb5..563917817c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,13 +48,12 @@ jobs: - run: grunt test-unit --verbose - run: grunt test-regression --verbose - #- uses: 8398a7/action-slack@v3 - # if: ${{ failure() }} && github.ref == 'refs/heads/master' - # with: - # status: ${{ job.status }} - # fields: repo,message,commit,author,ref - # env: - # SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + - uses: daniellockyer/action-slack-build@master + if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/master' + with: + status: ${{ job.status }} + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} ghost-cli: name: Ghost-CLI @@ -88,10 +87,9 @@ jobs: ghost install v2 --local -d $DIR ghost update -f -d $DIR --zip $GITHUB_WORKSPACE/ghost.zip - #- uses: 8398a7/action-slack@v3 - # if: ${{ failure() }} && github.ref == 'refs/heads/master' - # with: - # status: ${{ job.status }} - # fields: repo,message,commit,author,ref - # env: - # SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + - uses: daniellockyer/action-slack-build@master + if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/master' + with: + status: ${{ job.status }} + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}