Skip to content

Commit 4801c53

Browse files
committed
chore: update preview qr code
1 parent 5f463b7 commit 4801c53

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish-each-pr.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,16 @@ jobs:
6161
script: |
6262
const config = JSON.parse('${{ steps.expo.outputs.EXPO_CONFIG }}');
6363
64+
console.log(config)
65+
6466
const { sdkVersion } = config;
6567
const { projectId } = config.extra.eas;
6668
67-
const channel = 'pr-${{ github.event.number }}';
69+
const branchId = ${{ github.ref_name }}
6870
6971
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}`;
7072
const body = `The mobile version of example app from this branch is ready! You can [see it here.](${url})
71-
<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>
73+
<a href="${url}"><img src="https://qr.expo.dev/eas-update?projectId=${projectId}&runtimeVersion=exposdk:${sdkVersion}&branchId=${branchId}" height="200px" width="200px"></a>
7274
`;
7375
7476
const comments = await github.rest.issues.listComments({

0 commit comments

Comments
 (0)