preciazo/.github/workflows/sepa-precios-archiver.yml

26 lines
540 B
YAML
Raw Normal View History

2024-08-24 03:00:38 +00:00
name: Sepa Precios Archiver
2024-08-24 02:59:02 +00:00
on:
schedule:
- cron: "0 */12 * * *" # Run every 6 hours
workflow_dispatch: # Allow manual trigger
jobs:
archive-prices:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Run archiver script
env:
GITHUB_TOKEN: ${{ secrets.ARCHIVE_GITHUB_TOKEN }}
run: |
cd sepa-precios-archiver
2024-08-24 03:00:18 +00:00
bun install
2024-08-24 02:59:02 +00:00
bun index.ts