Skip to content

Commit

Permalink
chore(git): fix error in git for slack notification
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Aug 28, 2024
1 parent 9bdb6b5 commit 85ea6bf
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ jobs:
echo "TEST_RESULTS<<EOF" >> $GITHUB_ENV
echo "$TEST_RESULTS" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Parse test results
run: |
if grep -q "ERR_ASSERTION" results.txt; then
echo "Test failure detected"
exit 1
Expand All @@ -53,10 +50,11 @@ jobs:
- name: Notify Failure
if: failure()
uses: rtCamp/action-slack-notify@v2
with:
status: ${{ job.status }}
text: 'IO Process Observation Failed!'
custom_payload: |
env:
SLACK_COLOR: ${{ job.status }}
SLACK_TITLE: IO Process Observation Failed!
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CUSTOM_PAYLOAD: |
{
text: "IO Process Observation Failed",
attachments: [{
Expand Down Expand Up @@ -86,7 +84,7 @@ jobs:

# on sucess send a slack message
- name: Notify Success
if: ${{ success() && vars.NOTIFY_SUCCESS == 'true' }}
if: success() && vars.NOTIFY_SUCCESS == 'true'
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: ${{ job.status }}
Expand Down

0 comments on commit 85ea6bf

Please sign in to comment.