pull upstream changes for new untranslated strings (ID) #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pull upstream changes for new untranslated strings (ID) | |
run-name: pull upstream changes for new untranslated strings (ID) | |
on: [push] | |
jobs: | |
pull-new-strings: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- run: git remote add upstream https://github.com/bluesky-social/social-app.git | |
- run: git fetch upstream main | |
- run: | | |
FILE_IS_UPDATED=$(git diff --compact-summary origin/main upstream/main | grep 'id/messages.po') | |
echo $FILE_IS_UPDATED | |
if [ "$FILE_IS_UPDATED" != "" ]; then | |
git config user.email "[email protected]" | |
git config user.name "kemarau" | |
git rebase upstream/main | |
git push origin main | |
fi |