expo / expo/expo-github-action
Using the output from "eas build"
- Dominant language
- TypeScript
- Stars
- 1k
- Forks
- 107
- PR merge metrics
- No merged PRs in 30d
Description
### Description of the bug
This is most likely just me not understanding the docs or how to use the shell commands.
I have also looked into to the [preview](https://github.com/expo/expo-github-action/blob/main/preview/README.md) but i am not using **eas update** and i am currently not handling updates through PR.
**My use case**
I want to be able to post a slack message when the build has completed. If possible include a QR code to the download page, or a qr code directly downloading the apk.
Others have asked the same, i have linked issues below.
After giving up trying to use a build in action. I am now trying to build my own script that does the actual sending, but i dont understand how to get the output from the run command. Any help would be much appreciated.
I am expecting to be able to use the output from either this
- name: 🚀 Build app
id: build_cmd
run: eas build --profile ad-hoc --platform android --non-interactive --json
or this
- name: 🚀 Build app
id: buildcmd
run: eas build:list --gitCommitHash=${{ github.sha }} --json --non-interactive --channel=ad-hoc
### To Reproduce
- name: 🚀 Build app
id: buildcmd
run: eas build:list --gitCommitHash=${{ github.sha }} --json --non-interactive --channel=ad-hoc
- name: npm output josn build
id: my_jsno_npm
run: node ./scripts/publish-build.js ${{ steps.buildcmd.outputs }}
or
- name: 🚀 Build app
id: buildcmd
run: |
{
echo 'JSON_RESPONSE<> "$GITHUB_ENV"
- name: npm output josn build
id: my_jsno_npm
run: node ./scripts/publish-build.js ${{ toJSON(env.JSON_RESPONSE) }}
#### Expected behavior
NA
#### Actual behavior
NA
### Additional context
I have been through similar question but did not find the answer
#176 [pass job output to another job](https://github.com/expo/expo-github-action/issues/176 )
#184 [QR Code and DeepLink not showed on Slack channel](https://github.com/expo/expo-github-action/issues/184)
#215 [Expose build id when build step is completed](https://github.com/expo/expo-github-action/issues/215)
Contributor guide
Assessment
This issue has not been assessed yet.