@@ -28,20 +28,29 @@ name: 🔄 Sync with upstream
2828
2929on :
3030 schedule :
31- - cron : ' 0 12 * * 1-5' # At 12:00 UTC on every day-of-week from Monday through Friday
31+ - cron : " 0 12 * * 1-5" # At 12:00 UTC on every day-of-week from Monday through Friday
3232 workflow_dispatch :
3333 inputs :
3434 upstream-version :
3535 type : string
36- description : ' Upstream release version to sync with (e.g. v1.0.0). Leave empty to sync with the latest release.'
36+ description : " Upstream release version to sync with (e.g. v1.0.0). Leave empty to sync with the latest release."
3737 required : false
38- default : ' '
38+ default : " "
3939
4040env :
4141 UPSTREAM_REPOSITORY : obytes/react-native-template-obytes
42- DIFF_EXCLUDED_ROUTES : |
42+ DIFF_EXCLUDED_ROUTES :
43+ | # Files/directories we don't want from the upstream repository
4344 ios
4445 android
46+ .cursorrules
47+ .github/workflows/eas-build-prod.yml
48+ .github/workflows/eas-build-qa.yml
49+ .github/workflows/new-app-version.yml
50+ .github/workflows/new-github-release.yml
51+ docs/public/reviews
52+ src/app/login.tsx
53+ src/components/card.tsx
4554
4655jobs :
4756 sync :
9099 echo "PR_EXISTS=false" >> $GITHUB_ENV
91100 fi
92101 env :
93- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
102+ GITHUB_TOKEN : ${{ secrets.UPDATE_FROM_UPSTREAM_PAT }}
94103 - name : Checkout update release of upstream
95104 if : ${{ env.BRANCH_EXISTS == 'false' }}
96105 run : |
@@ -113,7 +122,6 @@ jobs:
113122 - name : Commit and push changes to the update branch
114123 if : ${{ env.BRANCH_EXISTS == 'false' }}
115124 run : |
116- git add .
117125 git commit -m "chore: update upstream to ${{ env.UPSTREAM_UPDATE_VERSION }}"
118126 git checkout -b ${{ env.BRANCH_NAME }}
119127 git push origin ${{ env.BRANCH_NAME }}
0 commit comments