You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
814 B

  1. name: Auto Deploy Docs
  2. run-name: Edit by ${{ github.actor }} triggered docs deployment
  3. on:
  4. push:
  5. branches:
  6. - 'master'
  7. paths:
  8. - '**.md'
  9. jobs:
  10. Dispatch-Deploy-Workflow:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Print out debug info
  14. run: echo "Repo ${{ github.repository }} | Branch ${{ github.ref }} | Runner ${{ runner.os }} | Event ${{ github.event_name }}"
  15. - name: Dispatch deploy workflow
  16. uses: actions/github-script@v6
  17. with:
  18. github-token: ${{ secrets.GHA_CROSSREPO_WORKFLOW_TOKEN }}
  19. script: |
  20. await github.rest.actions.createWorkflowDispatch({
  21. owner: 'hello-robot',
  22. repo: 'hello-robot.github.io',
  23. workflow_id: 'auto_deploy.yaml',
  24. ref: '0.3',
  25. })