Skip to content

Commit

Permalink
chore: attempt different .yml to comment Vercel deploy URL on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
marktlinn committed Aug 26, 2023
1 parent fb36ab5 commit db890b6
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
outputs:
url: ${{ steps.deploy-preview.outputs.url }}
url: ${{ steps.preview-deploy.outputs.url }}
steps:
- uses: actions/checkout@v3
- name: install Vercel CLI
Expand All @@ -17,11 +17,14 @@ jobs:
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: build project artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: deploy preview
id: deploy-preview
run: |
du --inodes -d 5 .vercel/output
ls -l .vercel/output/functions
preview_url="$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }})"
echo "url=$preview_url" >> $GITHUB_OUTPUT
echo "deployed to $preview_url"
- name: Deploy preview
id: preview-deploy
run: echo "URL=$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} | tail -n 1)" >> $GITHUB_OUTPUT
- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
message: |
Preview URL ${{ steps.preview-deploy.outputs.URL }}
comment_tag: execution


0 comments on commit db890b6

Please sign in to comment.