-
Notifications
You must be signed in to change notification settings - Fork 71
36 lines (31 loc) · 1.09 KB
/
generate_package_wiki.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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