From 74dedf3dbb34d1e82231ab29a73b77510f479b7d Mon Sep 17 00:00:00 2001 From: "Gustavo A. Salazar" Date: Fri, 20 Nov 2020 08:56:49 +0000 Subject: [PATCH] github actions: notification only for dev and master --- .github/workflows/testing.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 7e050fdd..883b157b 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -46,6 +46,7 @@ jobs: - name: 📮 - Slack Notification uses: rtCamp/action-slack-notify@v2 continue-on-error: true + if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' env: SLACK_COLOR: "${{ job.status == 'success' && 'good' || 'danger' }}" SLACK_USERNAME: "Github Actions API"