Remove Slack integration from build as it needs a token and will never work when PR is received from a fork.

This commit is contained in:
Nanne Baars 2021-09-30 17:09:21 +02:00
parent f28bb09724
commit 5164514789
No known key found for this signature in database
GPG Key ID: A6D6C06FE4EC14E7

View File

@ -44,15 +44,3 @@ jobs:
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn clean install
notify-slack:
if: github.repository == 'WebGoat/WebGoat' && github.event_name == 'push' && (success() || failure())
needs:
- build
runs-on: ubuntu-latest
steps:
- name: "Slack workflow notification"
uses: Gamesight/slack-workflow-status@master
with:
repo_token: ${{secrets.GITHUB_TOKEN}}
slack_webhook_url: ${{secrets.SLACK_WEBHOOK_URL}}