Skip to content

Check update

Check update #11911

Workflow file for this run

name: Check update
permissions:
actions: write
checks: write
contents: write
on:
workflow_dispatch: # Event when workflow run manually
schedule:
- cron: '0 */1 * * *'
jobs:
test_job:
name: Check update
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm i
# - name: Run old script
# uses: nick-fields/retry@v3
# with:
# timeout_minutes: 5
# max_attempts: 5
# command: node src/run.js
- name: Run HoYoPlay script
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
command: node src/runHYP.js
- name: Run Markdown generate script
run: node src/generateMarkdown.js
- name: Git staging
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add --all
- name: Git commit / push
continue-on-error: true
run: |
git commit -m 'API output update'
git push