Skip to content

Commit 52d9298

Browse files
sswrksjchmiela
andauthored
[docs] EAS workflows app_store_connect interpolation context docs (expo#44640)
# Why <!-- Please describe the motivation for this PR, and link to relevant GitHub issues, forums posts, or feature requests. --> We've extended the workflows interpolation context with `app_store_connect`. # How <!-- How did you build this feature or fix this bug and why? --> Added the `app_store_connect` section to the EAS workflows syntax documentation. # Test Plan <!-- Please describe how you tested this change and how a reviewer could reproduce your test, especially if this PR does not include automated tests! If possible, please also provide terminal output and/or screenshots demonstrating your test/reproduction. --> Tested manually: <img width="625" height="794" alt="image" src="https://github.com/user-attachments/assets/73183f5a-44fb-4a55-b988-57fa67ec2507" /> # Checklist <!-- Please check the appropriate items below if they apply to your diff. --> - [ ] I added a `changelog.md` entry and rebuilt the package sources according to [this short guide](https://github.com/expo/expo/blob/main/CONTRIBUTING.md#-before-submitting) - [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin). - [x] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) --------- Co-authored-by: Stanisław Chmiela <sjchmiela@users.noreply.github.com>
1 parent 27adc92 commit 52d9298

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

docs/pages/eas/workflows/syntax.mdx

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,44 @@ jobs:
792792
View details: ${{ workflow.url }}
793793
```
794794

795+
#### `app_store_connect`
796+
797+
Information about App Store Connect entities associated with the workflow run. This context is available only for workflows triggered by an App Store Connect event. See [`on.app_store_connect`](#onapp_store_connect).
798+
799+
```ts
800+
type AppStoreConnectContext = {
801+
app: {
802+
id: string;
803+
};
804+
build_upload?: {
805+
id: string;
806+
state: 'awaiting_upload' | 'processing' | 'failed' | 'complete';
807+
};
808+
};
809+
```
810+
811+
The `app_store_connect.build_upload` object is present only when the workflow is triggered by a `build_upload` event domain.
812+
813+
Example:
814+
815+
```yaml
816+
on:
817+
app_store_connect:
818+
build_upload:
819+
states:
820+
- complete
821+
822+
jobs:
823+
notify:
824+
type: slack
825+
params:
826+
webhook_url: ${{ env.SLACK_WEBHOOK_URL }}
827+
message: |
828+
Upload complete for App Store Connect app: ${{ app_store_connect.app.id }}
829+
Upload ID: ${{ app_store_connect.build_upload.id }}
830+
Upload state: ${{ app_store_connect.build_upload.state }}
831+
```
832+
795833
#### `env`
796834

797835
A record of environment variables available in the current job context.

0 commit comments

Comments
 (0)