mirror of
https://github.com/spacebarchat/spacebarchat.git
synced 2024-11-21 18:02:35 +01:00
Add workflow to trigger docs rebuild
This commit is contained in:
parent
8e53cf17f9
commit
7613030d93
24
.github/workflows/docs-trigger.yml
vendored
Normal file
24
.github/workflows/docs-trigger.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
name: Trigger docs rebuild
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
files:
|
||||
- 'CODE_OF_CONDUCT.md'
|
||||
|
||||
jobs:
|
||||
trigger_docs_rebuild:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Trigger docs rebuild
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
const result = await github.rest.actions.createWorkflowDispatch({
|
||||
owner: 'spacebarchat',
|
||||
repo: 'docs',
|
||||
workflow_id: 'build.yml',
|
||||
ref: 'master'
|
||||
})
|
||||
console.log(result)
|
Loading…
Reference in New Issue
Block a user