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

name: Auto Deploy Docs
run-name: Edit by ${{ github.actor }} triggered docs deployment
on:
push:
branches:
- 'master'
paths:
- '**.md'
jobs:
Dispatch-Deploy-Workflow:
runs-on: ubuntu-latest
steps:
- name: Print out debug info
run: echo "Repo ${{ github.repository }} | Branch ${{ github.ref }} | Runner ${{ runner.os }} | Event ${{ github.event_name }}"
- name: Dispatch deploy workflow
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GHA_CROSSREPO_WORKFLOW_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'hello-robot',
repo: 'hello-robot.github.io',
workflow_id: 'auto_deploy.yaml',
ref: '0.3',
})