Skip to content

Generate Package Wiki #6

Generate Package Wiki

Generate Package Wiki #6

name: Generate Package Wiki
on:
schedule:
# Runs daily at a weird time (02:50 UTC) to avoid delays during periods of
# high loads of GitHub Actions workflow runs.
- cron: '50 2 * * *'
workflow_dispatch: # Allow manual triggering
jobs:
generate-wiki:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Checkout Wiki Repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
repository: ${{ github.repository }}.wiki
path: wiki
token: ${{ secrets.REPO_TOKEN }}
fetch-depth: 0
- name: Generate Wiki Content
id: generate-content
run: scripts/utils/generate_package_wiki.ps1
- name: Commit changes
working-directory: wiki
run: |
git config user.email '[email protected]'
git config user.name 'vm-packages'
git add . # Create page if it doesn't exist
git commit -am "Update Package Wiki"
git push