|
50 | 50 | jobs: |
51 | 51 | prep: |
52 | 52 | uses: OneSignal/sdk-actions/.github/workflows/prep-release.yml@main |
| 53 | + secrets: |
| 54 | + # Need this cross-repo token (sdk-actions & this repo) to perform changes |
| 55 | + GH_PUSH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }} |
53 | 56 | with: |
| 57 | + # Need target_repo otherwise caller would set github.repository to the caller itself (e.g. sdk-actions) |
54 | 58 | target_repo: OneSignal/OneSignal-Cordova-SDK |
55 | 59 | version: ${{ inputs.cordova_version }} |
56 | 60 |
|
57 | 61 | # Cordova specific steps |
58 | | - update-version: |
| 62 | + update_version: |
59 | 63 | needs: prep |
60 | 64 | runs-on: macos-latest |
61 | 65 | outputs: |
|
67 | 71 | - name: Checkout |
68 | 72 | uses: actions/checkout@v5 |
69 | 73 | with: |
| 74 | + # Need repository otherwise caller would set github.repository to the caller itself (e.g. sdk-actions) |
70 | 75 | repository: OneSignal/OneSignal-Cordova-SDK |
71 | 76 | ref: ${{ needs.prep.outputs.release_branch }} |
| 77 | + token: ${{ secrets.GH_PUSH_TOKEN || github.token }} |
72 | 78 |
|
73 | 79 | - name: Setup Bun |
74 | 80 | uses: oven-sh/setup-bun@v2 |
|
96 | 102 |
|
97 | 103 | - name: Setup Capacitor |
98 | 104 | run: | |
99 | | - bun link |
100 | 105 | cd example/IonicCapOneSignal |
101 | | - bun install --frozen-lockfile |
102 | 106 | bun run build |
103 | 107 |
|
104 | 108 | - name: Update Android SDK version |
@@ -180,13 +184,17 @@ jobs: |
180 | 184 | git push |
181 | 185 |
|
182 | 186 | create-pr: |
183 | | - needs: [prep, update-version] |
| 187 | + needs: [prep, update_version] |
184 | 188 | uses: OneSignal/sdk-actions/.github/workflows/create-release.yml@main |
| 189 | + secrets: |
| 190 | + # Need this cross-repo token (sdk-actions & this repo) to perform changes |
| 191 | + GH_PUSH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }} |
185 | 192 | with: |
| 193 | + # Need target_repo otherwise caller would set github.repository to the caller itself (e.g. sdk-actions) |
186 | 194 | target_repo: OneSignal/OneSignal-Cordova-SDK |
187 | 195 | release_branch: ${{ needs.prep.outputs.release_branch }} |
188 | 196 | target_branch: ${{ inputs.target_branch }} |
189 | | - android_from: ${{ needs.update-version.outputs.android_from }} |
| 197 | + android_from: ${{ needs.update_version.outputs.android_from }} |
190 | 198 | android_to: ${{ inputs.android_version }} |
191 | | - ios_from: ${{ needs.update-version.outputs.ios_from }} |
| 199 | + ios_from: ${{ needs.update_version.outputs.ios_from }} |
192 | 200 | ios_to: ${{ inputs.ios_version }} |
0 commit comments