Skip to content

Commit

Permalink
ci(pie-monorepo): DSW-000 generate QR codes for preview deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Siggery committed Nov 1, 2023
1 parent cabca49 commit 505fbca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/amplify-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ jobs:
environment-url: https://${{ env.SUB_DOMAIN }}.pie.design/
deployment-id: ${{ steps.deploy.outputs.deployment_id }}
state: "success"
- name: Comment PR with QR Code
if: ${{ github.event_name == 'pull_request' && success() }}
uses: siggerzz/QR-Code-Commenter-Action
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
links: "https://${{ env.SUB_DOMAIN }}.pie.design/"
messages: ":phone: - Scan the QR Code to view the ${{ inputs.package-name}} preview deployment on your mobile!"
# If it failed
- name: Update deployment status (failure)
if: ${{ github.event_name == 'pull_request' && failure() }}
Expand Down

0 comments on commit 505fbca

Please sign in to comment.