Skip to content

Commit 5c8349d

Browse files
committed
ci: test passing github pat
1 parent f87455a commit 5c8349d

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/create-release-pr.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ on:
5050
jobs:
5151
prep:
5252
uses: OneSignal/sdk-actions/.github/workflows/prep-release.yml@main
53+
secrets:
54+
GH_PUSH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }}
5355
with:
5456
target_repo: OneSignal/OneSignal-Cordova-SDK
5557
version: ${{ inputs.cordova_version }}
@@ -69,6 +71,7 @@ jobs:
6971
with:
7072
repository: OneSignal/OneSignal-Cordova-SDK
7173
ref: ${{ needs.prep.outputs.release_branch }}
74+
token: ${{ secrets.GH_PUSH_TOKEN || github.token }}
7275

7376
- name: Setup Bun
7477
uses: oven-sh/setup-bun@v2
@@ -96,9 +99,7 @@ jobs:
9699
97100
- name: Setup Capacitor
98101
run: |
99-
bun link
100102
cd example/IonicCapOneSignal
101-
bun install --frozen-lockfile
102103
bun run build
103104
104105
- name: Update Android SDK version
@@ -182,6 +183,8 @@ jobs:
182183
create-pr:
183184
needs: [prep, update-version]
184185
uses: OneSignal/sdk-actions/.github/workflows/create-release.yml@main
186+
secrets:
187+
GH_PUSH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }}
185188
with:
186189
target_repo: OneSignal/OneSignal-Cordova-SDK
187190
release_branch: ${{ needs.prep.outputs.release_branch }}

example/IonicCapOneSignal/scripts/build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ mv onesignal-cordova-plugin-*.tgz onesignal-cordova-plugin.tgz
88

99
# Install/update the plugin in the example app
1010
cd example/IonicCapOneSignal
11-
bun i
11+
if [ -n "$CI" ]; then
12+
bun install --frozen-lockfile
13+
else
14+
bun i
15+
fi
1216

1317
# Build example
1418
tsc && vite build

0 commit comments

Comments
 (0)