@@ -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+ 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+ 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