Skip to content

Commit

Permalink
Better failure handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoavo-codium committed Nov 11, 2024
1 parent aa53323 commit 8df5019
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs-to-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
git push -u origin update-docs-context-branch
- name: Send Slack Notification
if: failure()
if: steps.push-branch.outcome == 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
run: |
Expand All @@ -57,7 +57,7 @@ jobs:
$SLACK_WEBHOOK_URL
- name: Stop workflow on failure
if: failure()
if: steps.push-branch.outcome == 'failure'
run: |
echo "Stopping workflow due to failure in the previous step."
exit 1
Expand Down

0 comments on commit 8df5019

Please sign in to comment.