notify_on_print_profile_change.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. name: notify_on_print_profile_change
  2. on:
  3. push:
  4. branches: [ "main" ]
  5. paths:
  6. - 'resources/definitions/fdmprinter.def.json'
  7. - 'resources/definitions/ultimaker**'
  8. - 'resources/extruders/ultimaker**'
  9. - 'resources/intent/ultimaker**'
  10. - 'resources/quality/ultimaker**'
  11. - 'resources/variants/ultimaker**'
  12. pull_request:
  13. branches: [ "main" ]
  14. paths:
  15. - 'resources/definitions/fdmprinter.def.json'
  16. - 'resources/definitions/ultimaker**'
  17. - 'resources/extruders/ultimaker**'
  18. - 'resources/intent/ultimaker**'
  19. - 'resources/quality/ultimaker**'
  20. - 'resources/variants/ultimaker**'
  21. permissions: {}
  22. jobs:
  23. slackNotification:
  24. name: Slack Notification
  25. runs-on: ubuntu-latest
  26. steps:
  27. - name: Ultimaker Print Profile Changed
  28. uses: rtCamp/action-slack-notify@v2
  29. env:
  30. SLACK_CHANNEL: profile-changes
  31. SLACK_USERNAME: ${{ github.repository }}
  32. SLACK_COLOR: '#00FF00'
  33. SLACK_TITLE: Print profiles changed
  34. MSG_MINIMAL: commit
  35. SLACK_WEBHOOK: ${{ secrets.SLACK_CURA_PPM_HOOK }}