From d6d7eef0548726f702d7b5a1b401592e40973bcc Mon Sep 17 00:00:00 2001 From: Rijk van Manen Date: Wed, 5 Oct 2022 14:55:49 +0200 Subject: [PATCH] Notify PP&M on Print Profile Change To avoid print profile changes for ultimaker printers going unnoticed a github action is set up. PP-260 --- .../notify_on_print_profile_change.yml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/notify_on_print_profile_change.yml diff --git a/.github/workflows/notify_on_print_profile_change.yml b/.github/workflows/notify_on_print_profile_change.yml new file mode 100644 index 0000000000..f2c77d366c --- /dev/null +++ b/.github/workflows/notify_on_print_profile_change.yml @@ -0,0 +1,35 @@ +name: notify_on_print_profile_change + +on: + push: + branches: [ "main" ] + paths: + - 'resources/definitions/fdmprinter.def.json' + - 'resources/definitions/ultimaker**' + - 'resources/extruders/ultimaker**' + - 'resources/intent/ultimaker**' + - 'resources/quality/ultimaker**' + - 'resources/variants/ultimaker**' + pull_request: + branches: [ "main" ] + paths: + - 'resources/definitions/fdmprinter.def.json' + - 'resources/definitions/ultimaker**' + - 'resources/extruders/ultimaker**' + - 'resources/intent/ultimaker**' + - 'resources/quality/ultimaker**' + - 'resources/variants/ultimaker**' +jobs: + slackNotification: + name: Slack Notification + runs-on: ubuntu-latest + steps: + - name: Ultimaker Print Profile Changed + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_CHANNEL: profile-changes + SLACK_USERNAME: ${{ github.repository }} + SLACK_COLOR: '#00FF00' + SLACK_TITLE: Print profiles changed + MSG_MINIMAL: commit + SLACK_WEBHOOK: ${{ secrets.SLACK_CURA_PPM_HOOK }} \ No newline at end of file