update-website.yml 986 B

123456789101112131415161718192021222324252627282930
  1. name: Update website
  2. on:
  3. pull_request:
  4. types: [closed]
  5. concurrency:
  6. group: website-trigger-${{ github.ref }}
  7. cancel-in-progress: true
  8. jobs:
  9. trigger:
  10. if: github.event.pull_request.merged == true &&
  11. github.event.pull_request.base.ref == 'master' &&
  12. github.repository == 'netdata/netdata'
  13. runs-on: ubuntu-latest
  14. steps:
  15. - name: Check Labels
  16. id: label-check
  17. run: |
  18. LABELS='${{ toJSON(github.event.pull_request.labels) }}'
  19. echo "Labels: $LABELS"
  20. if [[ "$LABELS" =~ "integrations-update" ]]; then
  21. echo "has_label=true" >> $GITHUB_OUTPUT
  22. fi
  23. - name: Trigger netdata/website update-integrations workflow
  24. if: steps.label-check.outputs.has_label == 'true'
  25. uses: benc-uk/workflow-dispatch@v1
  26. with:
  27. token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
  28. repo: netdata/website
  29. workflow: Update integrations
  30. ref: refs/heads/master