-
Notifications
You must be signed in to change notification settings - Fork 35
38 lines (36 loc) · 1.42 KB
/
get-vendors-GH-Pages-CI.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
name: Get-Vendors-Data-GH-Pages
on:
schedule:
# Run every Tuesday, Wednesday and Thursday at 0:15am
# The Thursday run is just for safety, in case ruben team forgot something
- cron: "30 0 * * 2,3,4"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
keep_file_updated:
runs-on: ubuntu-latest
name: Get Data from rubenalamina
steps:
- name: Checkout repo
id: checkout
uses: actions/checkout@v2
with:
ref: 'gh-pages'
- name: Update gear.json
id: update_gear
uses: TheLastProject/keep-remote-file-locally-up-to-date-action@v1
with:
url: http://rubenalamina.mx/division/gear.json
file_in_repo: vendors/gear.json
- name: Update weapons.json
id: update_weapons
uses: TheLastProject/keep-remote-file-locally-up-to-date-action@v1
with:
url: http://rubenalamina.mx/division/weapons.json
file_in_repo: vendors/weapons.json
- name: Update mods.json
id: update_mods
uses: TheLastProject/keep-remote-file-locally-up-to-date-action@v1
with:
url: http://rubenalamina.mx/division/mods.json
file_in_repo: vendors/mods.json