Skip to content

Commit 3d78778

Browse files
committed
chore: apply guarded native API edits on the feature branch
1 parent 6387065 commit 3d78778

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Prepare native host API
2+
on:
3+
push:
4+
branches: [feat/native-host-update-api]
5+
paths: [.github/workflows/native-host-api-prepare.yml]
6+
permissions:
7+
contents: write
8+
jobs:
9+
apply:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 5
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Apply source edits
15+
run: |
16+
python3 scripts/add-native-host-api.py
17+
git diff --check
18+
git diff --stat
19+
- name: Commit only the native API implementation
20+
run: |
21+
git config user.name 'github-actions[bot]'
22+
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
23+
git add android/src/main/java/cn/reactnative/modules/update/NativeCheckOrchestrator.java ios/RCTPushy/RCTPushy.mm harmony/pushy/src/main/ets/NativeCheckOrchestrator.ts harmony/pushy/src/main/ets/PushyFileJSBundleProvider.ets harmony/pushy/index.ets
24+
git commit -m 'feat: connect native host APIs to the shared update round'
25+
git push origin HEAD:refs/heads/feat/native-host-update-api

0 commit comments

Comments
 (0)