Skip to content

Commit

Permalink
feat(cicd): keep slack notification on PR for owners
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Dec 14, 2021
1 parent 4c01cfd commit d4f6e82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
check:
name: Check
runs-on: ubuntu-latest
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

strategy:
matrix:
Expand Down Expand Up @@ -179,7 +181,7 @@ jobs:
# Slack
- name: Slack notification
uses: 8398a7/action-slack@v2
if: always() && github.event_name != 'pull_request'
if: ${{ always() && env.SLACK_WEBHOOK_URL != 0 }}
with:
status: ${{ job.status }}
username: Github Actions
Expand Down

0 comments on commit d4f6e82

Please sign in to comment.