From be7e05bf460c59d96d9c86e1644ea012ae3be908 Mon Sep 17 00:00:00 2001 From: Pablo Santiago Blum de Aguiar Date: Sun, 24 Jan 2021 19:03:45 +0100 Subject: [PATCH] workflow: Send no notification on Slack This is somehow useless as secrets are not passed to action runners when the workflow is triggered from a forked repository (for obvious reasons) --- .github/workflows/build.yml | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 44afefb..b3338f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,33 +41,3 @@ jobs: tests/run.fish pushd pkg/fish-spec; fish -c 'fish-spec'; popd pushd pkg/omf; fish -c 'fish-spec'; popd - - notify-success: - needs: [build] - if: success() - runs-on: ubuntu-latest - steps: - - name: Notify on Slack - uses: rtCamp/action-slack-notify@ae4223259071871559b6e9d08b24a63d71b3f0c0 - env: - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - SLACK_ICON: false - SLACK_COLOR: good - SLACK_USERNAME: GitHub Actions - SLACK_TITLE: Build Success - SLACK_FOOTER: "" - - notify-failure: - needs: [build] - if: failure() - runs-on: ubuntu-latest - steps: - - name: Notify on Slack - uses: rtCamp/action-slack-notify@ae4223259071871559b6e9d08b24a63d71b3f0c0 - env: - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - SLACK_ICON: false - SLACK_COLOR: danger - SLACK_USERNAME: GitHub Actions - SLACK_TITLE: Build Failure - SLACK_FOOTER: ""