solidity-docs / .github

22 stars 29 forks source link

Make translation bot not fail when the sync PR has no conflicts #34

Closed cameel closed 2 years ago

cameel commented 2 years ago

This PR fixes github action failures we've been seeing recently (e.g. 7758648721). They happen when the bot tries to commit the changes after resolving conflicts. If there were no conflicts, the commit already exists, there's nothing new to commit and git complains:

nothing added to commit but untracked files present (use "git add" to track)
Error: Process completed with exit code 1.

The solution is to skip the commit. We only need to adjust the message on an already existing commit.