diff --git a/.github/workflows/deploy-pr-preview.yaml b/.github/workflows/deploy-pr-preview.yaml index 31470e8..0651d2c 100644 --- a/.github/workflows/deploy-pr-preview.yaml +++ b/.github/workflows/deploy-pr-preview.yaml @@ -30,8 +30,7 @@ jobs: - name: Deploy Storybook to Surge run: surge ./storybook-static/ "${{steps.surge-url.outputs.result}}" --token ${{ secrets.SURGE_TOKEN }} - name: Post URL as PR comment - uses: unsplash/comment-on-pr@master - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + uses: mshick/add-pr-comment@v1 with: - msg: '✨ Deployed Storybook Preview: http://${{steps.surge-url.outputs.result}}' + message: "✨ Deployed Storybook Preview: http://${{steps.surge-url.outputs.result}}" + repo-token: ${{ secrets.GH_TOKEN }}