Skip to content

Commit

Permalink
Auto contributors will now try to merge with main before pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
uchendui committed Sep 27, 2023
1 parent 2d7b65f commit 4d08150
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/auto-add-contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ jobs:
npx all-contributors generate
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
# Fetch the latest state of the master branch and try to rebase
git fetch origin main
git merge origin main
git add -u
git diff-index --quiet HEAD || git commit -m "Update readme and contributors.qmd with contributors"
git push
git push

0 comments on commit 4d08150

Please sign in to comment.