mirror of
https://github.com/quatalog/quatalog.git
synced 2025-11-29 15:55:55 +00:00
Merge branch 'main' of https://github.com/quatalog/quatalog
This commit is contained in:
commit
001825d3dc
6
.github/workflows/transfer.yml
vendored
6
.github/workflows/transfer.yml
vendored
|
|
@ -1,5 +1,7 @@
|
||||||
name: Scrape transfer and update file
|
name: Scrape transfer and update file
|
||||||
run-name: Scrape transfer and update file
|
run-name: Scrape transfer and update file
|
||||||
|
env:
|
||||||
|
DEFAULT_TIMEOUT: 45
|
||||||
on:
|
on:
|
||||||
# schedule:
|
# schedule:
|
||||||
# - cron: '*/15 * * * *'
|
# - cron: '*/15 * * * *'
|
||||||
|
|
@ -11,7 +13,7 @@ on:
|
||||||
description: "Timeout time"
|
description: "Timeout time"
|
||||||
required: true
|
required: true
|
||||||
type: number
|
type: number
|
||||||
default: 120
|
default: 2
|
||||||
concurrency:
|
concurrency:
|
||||||
group: transfer-scraper
|
group: transfer-scraper
|
||||||
|
|
||||||
|
|
@ -52,7 +54,7 @@ jobs:
|
||||||
mkdir new-data
|
mkdir new-data
|
||||||
rsync -avzh data/transfer.json new-data
|
rsync -avzh data/transfer.json new-data
|
||||||
rsync -avzh data/transfer_state.json new-data
|
rsync -avzh data/transfer_state.json new-data
|
||||||
python3 quatalog-scraping/transfer_scraper/main.py new-data/transfer.json new-data/transfer_state.json ${{ github.event.inputs.timeout }}
|
python3 quatalog-scraping/transfer_scraper/main.py new-data/transfer.json new-data/transfer_state.json ${{ github.event.inputs.timeout || env.DEFAULT_TIMEOUT }}
|
||||||
|
|
||||||
- name: Upload data to artifact
|
- name: Upload data to artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue