mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-21 14:17:41 +01:00
0150ce8505
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> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
name: Autowiki
|
|
on:
|
|
schedule:
|
|
- cron: "5 4 * * *"
|
|
workflow_dispatch:
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
autowiki:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Check for AUTOWIKI_USERNAME"
|
|
id: secrets_set
|
|
env:
|
|
ENABLER_SECRET: ${{ secrets.AUTOWIKI_USERNAME }}
|
|
run: |
|
|
unset SECRET_EXISTS
|
|
if [ -n "$ENABLER_SECRET" ]; then SECRET_EXISTS=true ; fi
|
|
echo "SECRETS_ENABLED=$SECRET_EXISTS" >> $GITHUB_OUTPUT
|
|
- name: Checkout
|
|
if: steps.secrets_set.outputs.SECRETS_ENABLED
|
|
uses: actions/checkout@v6
|
|
- name: Install BYOND
|
|
if: steps.secrets_set.outputs.SECRETS_ENABLED
|
|
uses: ./.github/actions/restore_or_install_byond
|
|
- name: Install rust-g
|
|
if: steps.secrets_set.outputs.SECRETS_ENABLED
|
|
run: |
|
|
bash tools/ci/install_rust_g.sh
|
|
- name: Compile and generate Autowiki files
|
|
if: steps.secrets_set.outputs.SECRETS_ENABLED
|
|
run: |
|
|
source $HOME/BYOND/byond/bin/byondsetup
|
|
tools/build/build.sh --ci autowiki
|
|
- name: Run Autowiki
|
|
if: steps.secrets_set.outputs.SECRETS_ENABLED
|
|
env:
|
|
USERNAME: ${{ secrets.AUTOWIKI_USERNAME }}
|
|
PASSWORD: ${{ secrets.AUTOWIKI_PASSWORD }}
|
|
run: |
|
|
cd tools/autowiki
|
|
npm install
|
|
cd ../..
|
|
node tools/autowiki/autowiki.js data/autowiki_edits.txt data/autowiki_files/
|