Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,18 @@ on:
push:
branches:
- main
paths:
- 'src/**'
- 'custom/**'
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:
inputs:
fullScrape:
description: 'Scrape the entire wiki, instead of only the changed pages'
required: true
default: false
type: boolean
jobs:
release:
permissions: write-all
Expand Down Expand Up @@ -32,7 +42,14 @@ jobs:
uses: montudor/action-zip@v1
- name: Scrape wiki
if: ${{ steps.wiki_confirm_no_changes.outcome == 'failure' }}
run: npm run scrape-wiki
env:
FULL_SCRAPE: ${{ inputs.fullScrape || false }}
run: |
if [ "$FULL_SCRAPE" = "true" ]; then
npm run wiki-scrape
else
npm run wiki-scrape -- --update-changed-by-tag $(git tag -l --sort=-v:refname | head -n 1)
fi
- name: Format the output with StyLua
if: ${{ steps.wiki_confirm_no_changes.outcome == 'failure' }}
uses: JohnnyMorganz/stylua-action@v2.0.0
Expand Down
90 changes: 90 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"archiver": "^6.0.1",
"cheerio": "^1.0.0-rc.12",
"cross-env": "^7.0.3",
"extract-zip": "^2.0.1",
"fetch-retry": "^5.0.6",
"html-loader": "^4.2.0",
"jest": "^29.7.0",
Expand Down
Loading