Skip to content

Commit

Permalink
Merge pull request #647 from zyf722/i18next-integration-draft
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhosny authored Nov 3, 2024
2 parents 643a127 + 6df01ba commit 90ed853
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/i18n-update-scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ jobs:
git config pull.rebase false
git fetch origin $BRANCH:$BRANCH
git checkout $BRANCH
git pull origin develop
else
git checkout -b $BRANCH
fi
Expand Down Expand Up @@ -101,7 +100,16 @@ jobs:
echo "LAST_COMMIT_SHA_PULL=$(git log -n 1 --format="%H" -- src/livecodes/i18n/locales)" >> $GITHUB_ENV
- name: Push changes
run: git push origin $BRANCH
run: |
git pull origin ${{ github.event.repository.default_branch }} || {
echo "Failed to pull from ${{ github.event.repository.default_branch }}."
echo "Please manually pull the changes, solve potential conflicts, and re-run the workflow."
echo "::error title=Pull failed::Failed to pull from ${{ github.event.repository.default_branch }}."
exit 1
}
git push origin $BRANCH
- name: Check if has differences between ${{ env.BRANCH }} and ${{ github.event.repository.default_branch }}
id: check-diff
Expand Down

0 comments on commit 90ed853

Please sign in to comment.