Get-Vendors-Data #395
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Get-Vendors-Data | |
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: '15 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 | |
- 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: public/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: public/vendors/weapons.json |