Skip to content

Commit

Permalink
chore: update preview qr code
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewalczak committed Jan 10, 2025
1 parent 5f463b7 commit 179def6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish-each-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,18 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const channel = 'pr-${{ github.event.number }}';
const config = JSON.parse('${{ steps.expo.outputs.EXPO_CONFIG }}');
const branch = JSON.parse('$(eas branch:view ${{channel}} --json --non-interactive )')
const { sdkVersion } = config;
const { projectId } = config.extra.eas;
const channel = 'pr-${{ github.event.number }}';
const { id } = branch;
const url = `https://expo.dev/@react-native-paper/react-native-paper-example?serviceType=eas&distribution=expo-go&scheme=exp+react-native-paper-example&channel=${channel}&sdkVersion=${sdkVersion}`;
const body = `The mobile version of example app from this branch is ready! You can [see it here.](${url})
<a href="${url}"><img src="https://qr.expo.dev/eas-update?appScheme=exp&projectId=${projectId}&channel=${channel}&runtimeVersion=exposdk:${sdkVersion}&host=u.expo.dev" height="200px" width="200px"></a>
<a href="${url}"><img src="https://qr.expo.dev/eas-update?projectId=${projectId}&runtimeVersion=exposdk:${sdkVersion}&branchId=${id}" height="200px" width="200px"></a>
`;
const comments = await github.rest.issues.listComments({
Expand Down

0 comments on commit 179def6

Please sign in to comment.