Move fetch script into sub-directory

Add requirements.txt
This commit is contained in:
oxalica
2021-01-05 21:13:26 +08:00
parent 5311b35bea
commit afc5714e06
3 changed files with 7 additions and 5 deletions

View File

@@ -22,19 +22,19 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install python dependencies
run: pip3 install toml requests
- name: Install python packages
run: pip3 install -r ./scripts/requirements.txt
- name: Install Nix
uses: cachix/install-nix-action@v12
- name: Sync stable channel
timeout-minutes: 5
run: python3 ./fetch.py stable
run: python3 ./scripts/fetch.py stable
- name: Sync beta channel
timeout-minutes: 5
run: python3 ./fetch.py beta
run: python3 ./scripts/fetch.py beta
- name: Sync nightly channel
timeout-minutes: 5
run: python3 ./fetch.py nightly
run: python3 ./scripts/fetch.py nightly
- name: Check and commit changes
id: commit
continue-on-error: true

2
scripts/requirements.txt Normal file
View File

@@ -0,0 +1,2 @@
requests~=2.25.0
toml~=0.10.2