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

35 lines
957 B
YAML
Raw Permalink 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:
2024-09-07 23:25:15 +00:00
- cron: "0 */3 * * *" # Run every 3 hours
2024-08-24 02:59:02 +00:00
workflow_dispatch: # Allow manual trigger
jobs:
archive-prices:
2024-10-11 20:06:57 +00:00
# runs-on: ubicloud-standard-2
runs-on: ubuntu-latest
2024-08-24 02:59:02 +00:00
steps:
- uses: actions/checkout@v4
2024-08-24 14:45:38 +00:00
- uses: oven-sh/setup-bun@v2
2024-08-24 02:59:02 +00:00
with:
bun-version: latest
2024-09-02 12:31:32 +00:00
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# with:
# limit-access-to-actor: true
2024-08-25 01:01:28 +00:00
2024-08-24 02:59:02 +00:00
- name: Run archiver script
env:
GITHUB_TOKEN: ${{ secrets.ARCHIVE_GITHUB_TOKEN }}
2024-09-16 13:19:15 +00:00
GH_TOKEN: ${{ secrets.GH_PRECIAZO_TOKEN }}
2024-08-24 14:47:14 +00:00
B2_BUCKET_NAME: ${{ secrets.B2_BUCKET_NAME }}
B2_BUCKET_KEY_ID: ${{ secrets.B2_BUCKET_KEY_ID }}
B2_BUCKET_KEY: ${{ secrets.B2_BUCKET_KEY }}
2025-01-30 23:43:39 +00:00
PROXY_URI: ${{ secrets.PROXY_URI }}
2024-08-24 02:59:02 +00:00
run: |
2024-09-12 21:17:10 +00:00
cd sepa
2024-08-24 14:45:38 +00:00
bun install --frozen-lockfile
2024-09-12 21:17:10 +00:00
bun archiver.ts