mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-12-11 06:17:09 +08:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
name: Documentation
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
paths:
|
|
- "docs/**"
|
|
repository_dispatch:
|
|
types: [docs]
|
|
gollum:
|
|
|
|
env:
|
|
GIT_AUTHOR_NAME: Actionbot
|
|
GIT_AUTHOR_EMAIL: actions@github.com
|
|
|
|
jobs:
|
|
job-sync-docs-to-wiki:
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name != 'gollum'
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v6
|
|
- name: Sync docs to wiki
|
|
uses: newrelic/wiki-sync-action@main
|
|
with:
|
|
source: docs
|
|
destination: wiki
|
|
token: ${{ secrets.PAT }}
|
|
gitAuthorName: ${{ env.GIT_AUTHOR_NAME }}
|
|
gitAuthorEmail: ${{ env.GIT_AUTHOR_EMAIL }}
|
|
|
|
job-sync-wiki-to-docs:
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name == 'gollum'
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v6
|
|
with:
|
|
token: ${{ secrets.PAT }} # allows us to push back to repo
|
|
ref: develop
|
|
- name: Sync Wiki to Docs
|
|
uses: newrelic/wiki-sync-action@main
|
|
with:
|
|
source: wiki
|
|
destination: docs
|
|
token: ${{ secrets.PAT }}
|
|
gitAuthorName: ${{ env.GIT_AUTHOR_NAME }}
|
|
gitAuthorEmail: ${{ env.GIT_AUTHOR_EMAIL }}
|
|
branch: develop
|