From afc5714e0645cd9a5577e8986fc58ecac519f938 Mon Sep 17 00:00:00 2001 From: oxalica Date: Tue, 5 Jan 2021 21:13:26 +0800 Subject: [PATCH] Move fetch script into sub-directory Add requirements.txt --- .github/workflows/sync-channels.yaml | 10 +++++----- fetch.py => scripts/fetch.py | 0 scripts/requirements.txt | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) rename fetch.py => scripts/fetch.py (100%) create mode 100644 scripts/requirements.txt diff --git a/.github/workflows/sync-channels.yaml b/.github/workflows/sync-channels.yaml index 570accbd..3c796077 100644 --- a/.github/workflows/sync-channels.yaml +++ b/.github/workflows/sync-channels.yaml @@ -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 diff --git a/fetch.py b/scripts/fetch.py similarity index 100% rename from fetch.py rename to scripts/fetch.py diff --git a/scripts/requirements.txt b/scripts/requirements.txt new file mode 100644 index 00000000..b0018bf3 --- /dev/null +++ b/scripts/requirements.txt @@ -0,0 +1,2 @@ +requests~=2.25.0 +toml~=0.10.2