aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/develop_docs.yml
blob: 4c569da3f8dd4c9a39938f48a8f4b32440bcb809 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Generate Develop Docs

permissions:
  contents: write

on:
  push:
    branches:
    - develop
    paths:
    - 'builddefs/docsgen/**'
    - 'tmk_core/**'
    - 'quantum/**'
    - 'platforms/**'
    - 'docs/**'
    - '.github/workflows/docs.yml'

jobs:
  generate:
    runs-on: ubuntu-latest

    steps:
    - name: Deploy Develop
      if: ${{ github.repository == 'qmk/qmk_firmware' }}
      uses: actions/github-script@v6
      with:
        github-token: ${{ secrets.QMK_BOT_TOKEN }}
        script: |
          const result = await github.rest.actions.createWorkflowDispatch({
            owner: 'qmk',
            repo: 'qmk_docs_devel',
            workflow_id: 'develop.yml',
            ref: 'main',
          })