File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,18 @@ name: Update Challenge Progress
22
33on :
44 pull_request :
5- types : [opened, edited, reopened]
5+ types :
6+ - closed
67
78jobs :
89 update_progress :
10+ if : github.event.pull_request.merged == true
911 runs-on : ubuntu-latest
1012 steps :
1113 - name : Checkout Repository
1214 uses : actions/checkout@v3
1315 with :
14- ref : ${{ github.head_ref }}
16+ ref : main
1517 fetch-depth : 0
1618
1719 - name : Set up Python
4345 cd _MonthlyChallenges
4446 git add scoreboard.json DASHBOARD.md HISTORY.md
4547 git commit -m "Update challenge progress dashboard" || echo "No changes to commit"
46- git push origin ${{ github.head_ref }}
48+ git push origin main
4749
4850 - name : Post PR Comment with progress
4951 if : github.event_name == 'pull_request'
You can’t perform that action at this time.
0 commit comments