diff --git a/.github/workflows/build-firmware.yml b/.github/workflows/build-firmware.yml index a5ee84e2..28dbd1ed 100644 --- a/.github/workflows/build-firmware.yml +++ b/.github/workflows/build-firmware.yml @@ -54,27 +54,16 @@ jobs: curl -v --tlsv1.2 --ipv4 --user "speeduino_firmware@speeduino.com:$WEB_PWD" --basic -T "./.pio/build/teensy36/firmware.hex" "https://speeduino.com:2078/teensy36/master-teensy36.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" - - - name: Slack Notification (Passed) - uses: rtCamp/action-slack-notify@v2 - if: success() && github.event_name != 'pull_request' && github.repository_owner == 'noisymime' - 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 was successful :white_check_mark:' - SLACK_USERNAME: Github - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - MSG_MINIMAL: actions url,commit - - - name: Slack Notification (Failed) - uses: rtCamp/action-slack-notify@v2 + + - name: Discord Notification (Build Failed) + uses: rjstone/discord-webhook-notify@v1 if: failure() && github.event_name != 'pull_request' && github.repository_owner == 'noisymime' - 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 + with: + severity: error + avatarUrl: https://avatars.githubusercontent.com/u/9919?v=4&size=48 + username: GitHub + description: 'Firmware build FAILED :warning:' + details: "***Author:** ${github.event.pusher.name} \n + **Commit URL:** ${{ github.event.head_commit.message }} \n + **Commit Message:** ${github.event.head_commit.message}" + webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} \ No newline at end of file diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index a7902681..63ad76ce 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -45,26 +45,15 @@ jobs: platformio run -e megaatmega2560 platformio remote test --force-remote --environment megaatmega2560 - - name: Slack Notification (Passed) - uses: rtCamp/action-slack-notify@v2 - if: success() - 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: 'Unit tests successful :white_check_mark:' - SLACK_USERNAME: Github - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - MSG_MINIMAL: actions url,commit - - - name: Slack Notification (Failed) - uses: rtCamp/action-slack-notify@v2 + - name: Discord Notification (Unit Tests Failed) + uses: rjstone/discord-webhook-notify@v1 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: 'Unit tests FAILED :warning:' - SLACK_USERNAME: Github - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - MSG_MINIMAL: actions url,commit + with: + severity: error + avatarUrl: https://avatars.githubusercontent.com/u/9919?v=4&size=48 + username: GitHub + description: 'Unit Tests FAILED :warning:' + details: "***Author:** ${github.event.pusher.name} \n + **Commit URL:** ${{ github.event.head_commit.message }} \n + **Commit Message:** ${github.event.head_commit.message}" + webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} \ No newline at end of file diff --git a/README.md b/README.md index fd847978..61ebf3fd 100644 --- a/README.md +++ b/README.md @@ -37,4 +37,4 @@ In addition the manual referenced above, Speeduino has a large and very vibrant ## Contributors -This project exists thanks to all the people who contribute, both in terms of code and testing provided. If you'd like to get involved, please have a read through [Contributing](contributing.md) and then jump on Slack to discuss things further +This project exists thanks to all the people who contribute, both in terms of code and testing provided. If you'd like to get involved, please have a read through [Contributing](contributing.md) and then jump on Discord to discuss things further