trigger-learn-update.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ---
  2. name: Trigger Netdata Learn documentation update
  3. on:
  4. push:
  5. branches:
  6. - master
  7. paths:
  8. - "**.mdx?"
  9. - "packaging/installer/kickstart.sh"
  10. concurrency:
  11. group: learn-trigger-${{ github.ref }}
  12. cancel-in-progress: true
  13. jobs:
  14. trigger-ingest:
  15. name: Trigger Netdata Learn ingest workflow.
  16. if: github.repository == 'netdata/netdata'
  17. runs-on: ubuntu-latest
  18. steps:
  19. - name: Trigger Netdata Learn ingest workflow.
  20. uses: benc-uk/workflow-dispatch@v1
  21. with:
  22. token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
  23. repo: netdata/learn
  24. workflow: Ingest
  25. ref: refs/heads/master
  26. - name: Failure Notification
  27. uses: rtCamp/action-slack-notify@v2
  28. env:
  29. SLACK_COLOR: 'danger'
  30. SLACK_FOOTER: ''
  31. SLACK_ICON_EMOJI: ':github-actions:'
  32. SLACK_TITLE: 'Triggering Netdata Learn documentation update failed:'
  33. SLACK_USERNAME: 'GitHub Actions'
  34. SLACK_MESSAGE: |-
  35. ${{ github.repository }}: Failed to trigger Netdata Learn documentation update workflow.
  36. SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
  37. if: failure()