Skip to content

Run Cache Tasks

Run Cache Tasks #54

name: Run Cache Tasks
on:
workflow_dispatch:
inputs:
task:
description: "Task type"
required: true
infobox:
description: "Include infoboxes (optional)"
required: false
examines:
description: "Include examines (optional)"
required: false
oldCache:
description: "Old cache date (optional)"
required: false
newCache:
description: "New cache date (optional)"
required: false
update:
description: "The game update title (optional)"
required: false
updateDate:
description: "The game update date (optional)"
required: false
jobs:
scrapeNews:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Run task
run: yarn start:node -t ${{ github.event.inputs.task }} --infobox ${{ github.event.inputs.infobox }} --examines ${{ github.event.inputs.examines }} --oldCache ${{ github.event.inputs.oldCache }} --newCache ${{ github.event.inputs.newCache }} --update ${{ github.event.inputs.update }} --updateDate ${{ github.event.inputs.updateDate }}
- name: Upload Output
uses: actions/upload-artifact@v3
with:
name: out-${{ github.run_id }}-${{ github.run_attempt }}
path: out/