Generate Package Wiki #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |