-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (46 loc) · 1.55 KB
/
workflow-dispatch.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
- 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/