From 0c0149ad7119795d9d1aa4ccba9b9d9aa0708aff Mon Sep 17 00:00:00 2001 From: Shayki Abramczyk Date: Mon, 30 Oct 2023 12:30:11 +0200 Subject: [PATCH] add gpt.py to actions --- .github/workflows/scrape.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/scrape.yml b/.github/workflows/scrape.yml index 4de885b3..c8b40fe6 100644 --- a/.github/workflows/scrape.yml +++ b/.github/workflows/scrape.yml @@ -27,6 +27,18 @@ jobs: scrape: runs-on: ubuntu-latest steps: + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Install dependencies & run + run: | + cat GOOGLE_JSON > google.json + python -m pip install --upgrade pip + pip install -r requirements.txt + python gpt.py + env: + GOOGLE_JSON: ${{ secrets.GOOGLE_JSON }} - name: Pull image run: docker pull $IMAGE_NAME - name: Run scraper