1
0
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:
TheArcaneBrony 2023-05-01 12:35:32 +02:00
parent 8e53cf17f9
commit 7613030d93
No known key found for this signature in database
GPG Key ID: 32FC5AAADAD75A22

24
.github/workflows/docs-trigger.yml vendored Normal file
View 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)