File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff 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 : |
4953 env :
5054 GCS_DEVELOPER_KEY : ${{ secrets.GCS_DEVELOPER_KEY }}
5155 GCS_CX : ${{ secrets.GCS_CX }}
56+ GIT_PYTHON_TRACE : full
You can’t perform that action at this time.
0 commit comments