ci: Regenerate .pot only after rebasing to 'translations' branch

Otherwise we will get conflicts

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-07-12 13:47:15 -04:00
parent 25419db9ca
commit 4ac7a1fac2

View File

@ -36,10 +36,11 @@ jobs:
git config --global user.email "actions@github.com"
git config --global user.name "Github Actions"
git commit po/virt-manager.pot \
--message "Refresh translation .pot template"
git fetch --all
git rebase remotes/origin/translations
git commit po/virt-manager.pot \
--message "Refresh translation .pot template"
remote_repo="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
git push "${remote_repo}" HEAD:translations