Skip to content

Commit 672886d

Browse files
committed
test build notification
1 parent ce526c5 commit 672886d

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/build-sample-apps.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Build sample apps
33
on:
44
pull_request: # build sample apps for every commit pushed to an open pull request (including drafts)
55
push:
6-
branches: [ main, feature/* ]
7-
release: # build sample apps for every git tag created. These are known as "stable" builds that are suitable for people outside the mobile team.
6+
release: # build sample apps for every git tag created. These are known as "stable" builds that are suitable for people outside the mobile team.
87
types: [ published ]
98

109
concurrency: # cancel previous workflow run if one exists.

.github/workflows/reusable_build_sample_apps.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ jobs:
2525
cio-workspace-name: "Mobile: Native iOS & Android"
2626
cio-cdpapikey-secret-key: "CUSTOMERIO_JAVA_WORKSPACE_CDP_API_KEY"
2727
cio-siteid-secret-key: "CUSTOMERIO_JAVA_WORKSPACE_SITE_ID"
28+
app-id: "CUSTOMERIO_JAVA_APP_ID"
2829
- sample-app: "kotlin_compose"
2930
cio-workspace-name: "Mobile: xiOS CocoaPods FCM + Kotlin Android"
3031
cio-cdpapikey-secret-key: "CUSTOMERIO_KOTLIN_WORKSPACE_CDP_API_KEY"
3132
cio-siteid-secret-key: "CUSTOMERIO_KOTLIN_WORKSPACE_SITE_ID"
33+
app-id: "CUSTOMERIO_KOTLIN_APP_ID"
3234

3335
name: Building app...${{ matrix.sample-app }}
3436
permissions:
@@ -139,6 +141,21 @@ jobs:
139141
ANDROID_SIGNING_STORE_PASSWORD: ${{ secrets.ANDROID_SIGNING_STORE_PASSWORD }}
140142
FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_CREDS_B64: ${{ secrets.FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_CREDS_B64 }}
141143

144+
- name: Send Slack Notification for Sample App Builds
145+
if: env.IS_PRIMARY_APP == 'true'
146+
env:
147+
APP_ID: ${{ secrets[matrix.app-id] }}
148+
uses: customerio/mobile-ci-tools/.github/actions/slack-notify-sample-app/v1@mbl-750-app-slack-notify
149+
with:
150+
status: ${{ job.status }}
151+
firebase_distribution_groups: ${{ env.firebase_distribution_groups }}
152+
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
153+
firebase_project_id: ${{ secrets.SAMPLE_APPS_FIREBASE_PROJECT_ID }}
154+
repository_name: "Android"
155+
icon_url: "https://media.pocketgamer.com/artwork/na-qulrguj/android.jpg"
156+
firebase_app_ids: |
157+
Latest: ${{ env.APP_ID }}
158+
142159
- name: Update sample builds PR comment with build information
143160
if: ${{ github.event_name == 'pull_request' }}
144161
uses: peter-evans/create-or-update-comment@v4

0 commit comments

Comments
 (0)