Skip to content

Commit 72cb1ce

Browse files
authored
Update auto_update_preview.yml
Remove duplicate notification and attempt to mention the interrupt
1 parent 702d017 commit 72cb1ce

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/auto_update_preview.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,26 +50,15 @@ jobs:
5050
env:
5151
GH_TOKEN: ${{ github.token }}
5252

53-
- name: Send success notification
53+
- name: Send notification
5454
if: ${{ !env.ACT }} && steps.check_changes.outputs.has_changes == 'true'
5555
uses: rtCamp/action-slack-notify@v2
5656
env:
5757
SLACK_CHANNEL: criteo-api-sdk-generator
5858
SLACK_COLOR: ${{ job.status }}
59-
SLACK_MESSAGE: Autoupdate of OAS in Preview was successful. Please check opened PRs to validate the change, and publish the artifacts @apidx-interrupt.
59+
SLACK_MESSAGE: Autoupdate of OAS in Preview. Please check opened PRs to validate the change, and publish the artifacts @apidx-interrupt.
6060
SLACK_USERNAME: sdk-generation-bot
6161
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
6262
SLACK_FOOTER: 'Autoupdate of OAS in preview runs daily Monday to Tuesday'
63-
SLACK_ICON_EMOJI: green_check_mark
64-
65-
- name: Send failure notification
66-
if: ${{ failure() }} && ${{ !env.ACT }}
67-
uses: rtCamp/action-slack-notify@v2
68-
env:
69-
SLACK_CHANNEL: criteo-api-sdk-generator
70-
SLACK_COLOR: ${{ job.status }}
71-
SLACK_MESSAGE: Failure during autoupdate of OAS in Preview.
72-
SLACK_USERNAME: sdk-generation-bot
73-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
74-
SLACK_FOOTER: 'Autoupdate of OAS in preview runs daily Monday to Tuesday'
75-
SLACK_ICON_EMOJI: x
63+
SLACK_ICON_EMOJI: bell
64+
SLACK_LINK_NAMES: true

0 commit comments

Comments
 (0)