Skip to content

Commit af37a04

Browse files
committed
fix: status checks not runinng on sync-with-upstream PRs
1 parent c53cdb8 commit af37a04

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/sync-with-upstream.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,29 @@ name: 🔄 Sync with upstream
2828

2929
on:
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

4040
env:
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

4655
jobs:
4756
sync:
@@ -90,7 +99,7 @@ jobs:
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: |
@@ -124,4 +133,4 @@ jobs:
124133
run: |
125134
gh pr create --title "chore: update upstream to ${{ env.UPSTREAM_UPDATE_VERSION }}" --body "Integrating latest changes from [obytes/react-native-template-obytes@${{ env.UPSTREAM_UPDATE_VERSION }}](https://github.com/obytes/react-native-template-obytes/releases/tag/${{ env.UPSTREAM_UPDATE_VERSION }})" --head ${{ env.BRANCH_NAME }}
126135
env:
127-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136+
GITHUB_TOKEN: ${{ secrets.UPDATE_FROM_UPSTREAM_PAT }}

0 commit comments

Comments
 (0)