Add more useful slack notification to build Action
This commit is contained in:
parent
341814867e
commit
ced6446d23
|
@ -49,12 +49,26 @@ jobs:
|
||||||
curl -v --tlsv1.2 --ipv4 --user "speeduino_firmware@speeduino.com:$WEB_PWD" --basic -T "./.pio/build/teensy41/firmware.hex" "https://speeduino.com:2078/teensy41/master-teensy41.hex"
|
curl -v --tlsv1.2 --ipv4 --user "speeduino_firmware@speeduino.com:$WEB_PWD" --basic -T "./.pio/build/teensy41/firmware.hex" "https://speeduino.com:2078/teensy41/master-teensy41.hex"
|
||||||
curl --tlsv1.2 --ipv4 --user "speeduino_firmware@speeduino.com:$WEB_PWD" --basic -T "./reference/speeduino.ini" "https://speeduino.com:2078/master.ini"
|
curl --tlsv1.2 --ipv4 --user "speeduino_firmware@speeduino.com:$WEB_PWD" --basic -T "./reference/speeduino.ini" "https://speeduino.com:2078/master.ini"
|
||||||
|
|
||||||
- name: Slack Notification
|
- name: Slack Notification (Passed)
|
||||||
uses: rtCamp/action-slack-notify@v2
|
uses: rtCamp/action-slack-notify@v2
|
||||||
|
if: success()
|
||||||
env:
|
env:
|
||||||
SLACK_CHANNEL: git
|
SLACK_CHANNEL: git
|
||||||
SLACK_COLOR: ${{ job.status }} # or a specific color like 'good' or '#ff00ff'
|
SLACK_COLOR: ${{ job.status }} # or a specific color like 'good' or '#ff00ff'
|
||||||
SLACK_ICON: https://avatars.githubusercontent.com/u/9919?v=4&size=48
|
SLACK_ICON: https://avatars.githubusercontent.com/u/9919?v=4&size=48
|
||||||
SLACK_TITLE: Firmware build
|
SLACK_TITLE: Firmware build was successful :white_check_mark:
|
||||||
SLACK_USERNAME: Github
|
SLACK_USERNAME: Github
|
||||||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
||||||
|
MSG_MINIMAL: actions url, commit
|
||||||
|
|
||||||
|
- name: Slack Notification (Failed)
|
||||||
|
uses: rtCamp/action-slack-notify@v2
|
||||||
|
if: failure()
|
||||||
|
env:
|
||||||
|
SLACK_CHANNEL: git
|
||||||
|
SLACK_COLOR: ${{ job.status }} # or a specific color like 'good' or '#ff00ff'
|
||||||
|
SLACK_ICON: https://avatars.githubusercontent.com/u/9919?v=4&size=48
|
||||||
|
SLACK_TITLE: Firmware build FAILED :warning:
|
||||||
|
SLACK_USERNAME: Github
|
||||||
|
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
||||||
|
MSG_MINIMAL: actions url, commit
|
||||||
|
|
Loading…
Reference in New Issue