dashboard-pr.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. ---
  2. # Create a PR to update the react dashboard code.
  3. name: Dashboard Version PR
  4. on:
  5. workflow_dispatch:
  6. inputs:
  7. dashboard_version:
  8. # This must be specified, and must _exactly_ match the version
  9. # tag for the release to be used for the update.
  10. description: Dashboard Version
  11. required: true
  12. env:
  13. DO_NOT_TRACK: 1
  14. jobs:
  15. dashboard-pr:
  16. name: Generate Dashboard Version Bump PR
  17. runs-on: ubuntu-latest
  18. steps:
  19. - name: Checkout
  20. uses: actions/checkout@v2
  21. - name: Update Files
  22. run: |
  23. web/gui/bundle_dashboard.py ${{ github.event.inputs.dashboard_version }}
  24. - name: Create Pull Request
  25. uses: peter-evans/create-pull-request@v3
  26. with:
  27. title: 'Update dashboard to version ${{ github.event.inputs.dashboard_version }}.'
  28. body: 'See https://github.com/netdata/dashboard/releases/tag/${{ github.event.inputs.dashboard_version }} for changes.'
  29. branch: dashboard-${{ github.event.inputs.dashboard_version }}
  30. branch-suffix: timestamp
  31. delete-branch: true
  32. commit-message: 'Update dashboard to version ${{ github.event.inputs.dashboard_version }}.'
  33. token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}