Add notification if master build is failed
@@ -33,3 +33,11 @@ jobs:
dockerfile: build/virtual-kubelet/Dockerfile
password: ${{ secrets.DOCKER_PASSWORD }}
if: github.ref == 'refs/heads/master'
+ - uses: 8398a7/action-slack@v2
+ with:
+ status: ${{ job.status }}
+ author_name: Integration Test # default: 8398a7@action-slack
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} # required
+ if: always() && github.ref == 'refs/heads/master' # Pick up events even if the job fails or is canceled.
