Skip to content

Commit ca8a03f

Browse files
ci: write ONESIGNAL_ANDROID_CHANNEL_ID to demo .env
Matches the Capacitor demo .env pattern (channel `7ec2ece9-...`). Required for the Appium "send WITH SOUND notification" spec on Android, which posts a notification using this channel ID; without it the channel falls back to default and the sound assertion fails. Exposed as an action input so a future caller can override. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 2da09ce commit ca8a03f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/actions/create-demo-env/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ inputs:
77
onesignal-api-key:
88
description: "OneSignal REST API key for the demo app"
99
required: true
10+
onesignal-android-channel-id:
11+
description: "Android Notification Channel ID used by the WITH SOUND test notification"
12+
required: false
13+
default: "7ec2ece9-c538-4656-9516-1316f48a005c"
1014
e2e-mode:
1115
description: "Whether to enable E2E_MODE in the demo app"
1216
required: false
@@ -20,10 +24,12 @@ runs:
2024
env:
2125
APP_ID: ${{ inputs.onesignal-app-id }}
2226
API_KEY: ${{ inputs.onesignal-api-key }}
27+
ANDROID_CHANNEL_ID: ${{ inputs.onesignal-android-channel-id }}
2328
E2E_MODE: ${{ inputs.e2e-mode }}
2429
run: |
2530
{
2631
echo "ONESIGNAL_APP_ID=$APP_ID"
2732
echo "ONESIGNAL_API_KEY=$API_KEY"
33+
echo "ONESIGNAL_ANDROID_CHANNEL_ID=$ANDROID_CHANNEL_ID"
2834
echo "E2E_MODE=$E2E_MODE"
2935
} > .env

0 commit comments

Comments
 (0)