Skip to content

Commit 3a2bad3

Browse files
authored
Update publish_sdk.yaml
1 parent 408b0f7 commit 3a2bad3

File tree

1 file changed

+25
-20
lines changed

1 file changed

+25
-20
lines changed

.github/workflows/publish_sdk.yaml

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,31 @@ jobs:
3737
with:
3838
password: ${{ secrets.PYPI_TOKEN }}
3939
packages_dir: packages/
40-
40+
4141
- name: Send success notification
42-
uses: rtCamp/action-slack-notify@v2
43-
env:
44-
SLACK_CHANNEL: criteo-api-sdk-generator
45-
SLACK_COLOR: ${{ job.status }}
46-
SLACK_MESSAGE: Python sdk publish succeeded. <https://github.com/criteo/criteo-api-python-sdk/actions/runs/${{github.run_id}}|Link to build>
47-
SLACK_USERNAME: sdk-generation-bot
48-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
49-
SLACK_FOOTER: ''
50-
SLACK_ICON_EMOJI: green_check_mark
51-
42+
if: ${{ success() }}
43+
uses: slackapi/[email protected]
44+
with:
45+
webhook: ${{ secrets.SLACK_WEBHOOK }}
46+
webhook-type: incoming-webhook
47+
payload: |
48+
status: "${{ job.status }}"
49+
channel: "C02J0CWR789"
50+
username: "sdk-generation-bot"
51+
color: "#80FF00"
52+
text: "Python SDK publishing succeeded. <https://github.com/criteo/criteo-api-java-sdk/actions/runs/${{github.run_id}}|Link to build>."
53+
icon_emoji: ":green_check_mark:"
54+
5255
- name: Send failure notification
5356
if: ${{ failure() }}
54-
uses: rtCamp/action-slack-notify@v2
55-
env:
56-
SLACK_CHANNEL: criteo-api-sdk-generator
57-
SLACK_COLOR: ${{ job.status }}
58-
SLACK_MESSAGE: Python sdk publish failed. <https://github.com/criteo/criteo-api-python-sdk/actions/runs/${{github.run_id}}|Link to build>
59-
SLACK_USERNAME: sdk-generation-bot
60-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
61-
SLACK_FOOTER: ''
62-
SLACK_ICON_EMOJI: x
57+
uses: slackapi/[email protected]
58+
with:
59+
webhook: ${{ secrets.SLACK_WEBHOOK }}
60+
webhook-type: incoming-webhook
61+
payload: |
62+
status: "${{ job.status }}"
63+
channel: "C02J0CWR789"
64+
username: "sdk-generation-bot"
65+
color: "#FF0000"
66+
text: "Python SDK publishing failed. <https://github.com/criteo/criteo-api-java-sdk/actions/runs/${{github.run_id}}|Link to build>."
67+
icon_emoji: ":x:"

0 commit comments

Comments
 (0)