Skip to content

Commit a9aa0ad

Browse files
authored
Update update_challenge_progress.yml
1 parent fd4d64c commit a9aa0ad

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/update_challenge_progress.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ jobs:
1919
with:
2020
python-version: '3.x'
2121

22-
- name: Sync with main branch
23-
run: git pull origin main --rebase
22+
- name: Configure Github User & Sync with main branch
23+
run: |
24+
git config --global user.name "${{ secrets.GIT_USER_NAME }}"
25+
git config --global user.email "${{ secrets.GIT_USER_EMAIL }}"
26+
git pull origin main --rebase
2427
2528
- name: Run extract_pr_data.py
2629
working-directory: _MonthlyChallenges
@@ -38,8 +41,6 @@ jobs:
3841
- name: Commit updated files
3942
run: |
4043
cd _MonthlyChallenges
41-
git config --global user.name "${{ secrets.GIT_USER_NAME }}"
42-
git config --global user.email "${{ secrets.GIT_USER_EMAIL }}"
4344
git add scoreboard.json DASHBOARD.md HISTORY.md
4445
git commit -m "Update challenge progress dashboard" || echo "No changes to commit"
4546
git push origin ${{ github.head_ref }}

0 commit comments

Comments
 (0)