Skip to content

Commit af428f1

Browse files
authored
Merge pull request #2501 from OneSignal/fg/wrapper-prs
ci: create release prs for wrappers for new android sdk release
2 parents 6f2d264 + eff4f49 commit af428f1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/publish-release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
permissions:
1717
contents: write
18-
pull-requests: read
18+
pull-requests: write
1919

2020
concurrency:
2121
group: ${{ github.workflow }}-${{ github.ref }}
@@ -24,6 +24,8 @@ concurrency:
2424
jobs:
2525
publish:
2626
runs-on: ubuntu-latest
27+
outputs:
28+
sdk_version: ${{ steps.extract_version.outputs.version }}
2729

2830
env:
2931
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
@@ -80,6 +82,7 @@ jobs:
8082
run: |
8183
VERSION=$(grep '^SDK_VERSION=' OneSignalSDK/gradle.properties | cut -d '=' -f2)
8284
echo "SDK_VERSION=$VERSION" >> $GITHUB_ENV
85+
echo "version=$VERSION" >> $GITHUB_OUTPUT
8386
echo "Resolved version: $VERSION"
8487
8588
- name: Assemble Release
@@ -174,3 +177,11 @@ jobs:
174177
--title "$VERSION" \
175178
--notes-file release_notes.md \
176179
$PRERELEASE
180+
181+
wrapper_prs:
182+
needs: publish
183+
uses: OneSignal/sdk-actions/.github/workflows/create-wrapper-prs.yml@main
184+
secrets:
185+
GH_PUSH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }}
186+
with:
187+
android_version: ${{ needs.publish.outputs.sdk_version }}

0 commit comments

Comments
 (0)