chore: tweak expo preview comment

This commit is contained in:
Satyajit Sahoo
2020-02-01 17:32:00 +01:00
parent 94d7b28c0b
commit c70635b7d7

View File

@@ -41,9 +41,13 @@ jobs:
working-directory: ./example
run: expo publish --release-channel=pr-${{ github.event.number }}
- name: Get expo link
id: expo
run: echo "::set-output name=path::@react-navigation/react-navigation-example?release-channel=pr-${{ github.event.number }}"
- name: Comment on PR
uses: unsplash/comment-on-pr@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: The Expo app for the example from this branch is ready!<br><br><a href="https://expo.io/@react-navigation/react-navigation-example?release-channel=pr-${{ github.event.number }}"><img src="https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=exp://exp.host/@react-navigation/react-navigation-example?release-channel=pr-${{ github.event.number }}" height="200px" width="200px"></a>.
msg: The Expo app for the example from this branch is ready!<br><br>[expo.io/${{ steps.expo.outputs.path }}](https://expo.io/${{ steps.expo.outputs.path }})<br><br><a href="exp://exp.host/${{ steps.expo.outputs.path }}"><img src="https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=exp://exp.host/${{ steps.expo.outputs.path }}" height="200px" width="200px"></a>.