Skip to content

Commit 73b11c2

Browse files
committed
chore: add QR code to expo preview messages
1 parent 8c563ac commit 73b11c2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
name: Expo Review
1+
name: Expo Preview
22
on: [pull_request]
3+
34
jobs:
45
publish:
56
name: Install and publish
@@ -24,7 +25,7 @@ jobs:
2425
- name: Get yarn cache
2526
id: yarn-cache
2627
run: echo "::set-output name=dir::$(yarn cache dir)"
27-
28+
2829
- name: Check yarn cache
2930
uses: actions/cache@v1
3031
with:
@@ -44,5 +45,6 @@ jobs:
4445
uses: unsplash/comment-on-pr@master
4546
env:
4647
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
PUBLISH_URL: https://expo.io/@react-native-paper/react-native-paper-example?release-channel=pr-${{ github.event.number }}
4749
with:
48-
msg: The mobile version of example app from this branch is ready! You can [see it here](https://expo.io/@react-native-paper/react-native-paper-example?release-channel=pr-${{ github.event.number }}).
50+
msg: The mobile version of example app from this branch is ready! You can [see it here]($(PUBLISH_URL))<br><img src="https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=$(PUBLISH_URL)" height="200px" width="200px">.

0 commit comments

Comments
 (0)