Skip to content

update debug workflow #4

update debug workflow

update debug workflow #4

Workflow file for this run

name: Debug
on:
push:
branches:
- debug
workflow_dispatch:
jobs:
debug-fetch:
runs-on: ubuntu-latest
steps:
- name: Determine current quarter
id: current-quarter
run: |
echo value="$(date +%Y)Q$(( ($(date +%-m)-1)/3+1 ))" \
>> "${GITHUB_OUTPUT}"
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 100
sparse-checkout: |
data/${{ steps.current-quarter.outputs.value }}/1-fetch
scripts/1-fetch
token: ${{ secrets.BOT_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install pipenv
pipenv sync --system
- name: Set PYTHONPATH
run: echo "PYTHONPATH=./scripts" >> "${GITHUB_ENV}"
- name: Fetch from Google Custom Search (GCS)
run: |
./scripts/1-fetch/gcs_fetch.py \
--limit=100 --enable-save --enable-git --dev
env:
GCS_DEVELOPER_KEY: ${{ secrets.GCS_DEVELOPER_KEY }}
GCS_CX: ${{ secrets.GCS_CX }}