Skip to content

Commit

Permalink
remove notification url
Browse files Browse the repository at this point in the history
remove notification dead URL due to build failing
  • Loading branch information
kasutu authored Nov 11, 2023
1 parent 5f17f6e commit b00afc9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ on:

env:
IMAGE_NAME: shield
NOTIFICATION_URL: "http://splitscale.systems:3030/notifications"
NOTIFICATION_INFO: "Build and Test"

jobs:
Expand All @@ -35,13 +34,3 @@ jobs:

- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Check if job suceeded
if: ${{ success() }}
run: |
curl -X POST -H "Content-Type: application/json" -d "{\"title\":\"${{ env.IMAGE_NAME }}\",\"content\":{\"status\":\"passed\",\"info\":\"${{ env.NOTIFICATION_INFO }}\"}}" ${{ env.NOTIFICATION_URL }}
- name: Check if job failed
if: ${{ failure() }}
run: |
curl -X POST -H "Content-Type: application/json" -d "{\"title\":\"${{ env.IMAGE_NAME }}\",\"content\":{\"status\":\"failed\",\"info\":\"${{ env.NOTIFICATION_INFO }}\"}}" ${{ env.NOTIFICATION_URL }}

0 comments on commit b00afc9

Please sign in to comment.