Skip to content

Commit 87293a0

Browse files
committed
update debug workflow
1 parent a23aa66 commit 87293a0

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/debug.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,38 @@ jobs:
1313

1414
steps:
1515

16-
- name: Determine current quarter
17-
id: current-quarter
16+
- name: Configure git
17+
id: setup
1818
run: |
19-
echo value="$(date +%Y)Q$(( ($(date +%-m)-1)/3+1 ))" \
19+
git config --global init.defaultBranch main
20+
git config --global user.name "${{ secrets.BOT_NAME }}"
21+
git config --global user.email "${{ secrets.BOT_EMAIL }}"
22+
echo quarter="$(date +%Y)Q$(( ($(date +%-m)-1)/3+1 ))" \
2023
>> "${GITHUB_OUTPUT}"
2124
2225
- name: Checkout repository
2326
uses: actions/checkout@v4
2427
with:
2528
fetch-depth: 100
2629
sparse-checkout: |
27-
data/${{ steps.current-quarter.outputs.value }}/1-fetch
30+
data/${{ steps.setup.outputs.quarter }}/1-fetch
2831
scripts/1-fetch
2932
token: ${{ secrets.BOT_TOKEN }}
3033

31-
- name: Set up Python
34+
- name: Setup Python
3235
uses: actions/setup-python@v5
3336
with:
3437
python-version: '3.11'
3538

36-
- name: Install dependencies
39+
- name: Install Python dependencies
3740
run: |
41+
echo "PYTHONPATH=./scripts" >> "${GITHUB_ENV}"
3842
pip install --upgrade pip
3943
pip install pipenv
4044
pipenv sync --system
4145
42-
- name: Set PYTHONPATH
43-
run: echo "PYTHONPATH=./scripts" >> "${GITHUB_ENV}"
46+
# - name: Set PYTHONPATH
47+
# run: echo "PYTHONPATH=./scripts" >> "${GITHUB_ENV}"
4448

4549
- name: Fetch from Google Custom Search (GCS)
4650
run: |
@@ -49,3 +53,4 @@ jobs:
4953
env:
5054
GCS_DEVELOPER_KEY: ${{ secrets.GCS_DEVELOPER_KEY }}
5155
GCS_CX: ${{ secrets.GCS_CX }}
56+
GIT_PYTHON_TRACE: full

0 commit comments

Comments
 (0)