update debug workflow #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Debug | |
on: | |
push: | |
branches: | |
- debug | |
workflow_dispatch: | |
jobs: | |
debug-fetch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure git | |
run: | | |
git config --global init.defaultBranch main | |
git config --global user.name "${{ secrets.BOT_NAME }}" | |
git config --global user.email "${{ secrets.BOT_EMAIL }}" | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 10 | |
token: ${{ secrets.BOT_TOKEN }} | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install Python dependencies | |
run: | | |
pip install --upgrade pip pipenv | |
- name: Sync Python modules | |
run: | | |
pipenv sync --system | |
- name: Fetch from Google Custom Search (GCS) | |
run: | | |
./scripts/1-fetch/gcs_fetch.py \ | |
--limit=10 --enable-save --enable-git | |
env: | |
GCS_DEVELOPER_KEY: ${{ secrets.GCS_DEVELOPER_KEY }} | |
GCS_CX: ${{ secrets.GCS_CX }} |