Skip to content

Commit

Permalink
Update results
Browse files Browse the repository at this point in the history
  • Loading branch information
mijanr committed Mar 16, 2024
1 parent f09b623 commit c303590
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/update_readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Update README
on:
push:
branches:
- main
- correct_woflow_git

jobs:
update-readme:
Expand All @@ -28,7 +28,13 @@ jobs:

- name: Commit results if it changed
run: |
git diff --exit-code --quiet results/best_runs.md || (git add results/best_runs.md && git commit -m "Update best runs")
# if the results changed then commit the changes
if [[ $(git status --porcelain) ]]; then
git config --global user.email "[email protected]"
git config --global user.name "Md Mijanur Rahman"
git commit -am "Update results" || exit 0
git push
fi
- name: Replace results in README
run: |
Expand Down

0 comments on commit c303590

Please sign in to comment.