LiveFleaPrice Fetcher #7797
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: LiveFleaPrice Fetcher | |
on: | |
push: | |
branches: [ main ] | |
schedule: | |
- cron: '0 */6 * * *' # Runs every hour | |
jobs: | |
fetch_data: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- run: npm ci | |
- run: npm run fetch | |
- name: Commit and push changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
default_author: github_actions | |
add: | | |
- prices.json | |
- prices-regular.json | |
- prices-pve.json | |
message: 'Update prices' | |