amondnet / amondnet/vercel-action
Preview & Deployment URL outputs are null when vercel build fails
- 主要言語
- TypeScript
- スター
- 765
- フォーク
- 116
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When the vercel build fails, the preview and deploy outputs are not provided. We are trying to log the build logs in the PR if this happens. We cannot do this without the preview-url. Please can it be change to still output these on failure?
# Deploy using the build files
- name: Deploy to Vercel
id: vercel-deploy
uses: amondnet/vercel-action@v25 # Deploy to Vercel
with:
github-token: ${{ secrets.VERCEL_GITHUB_TOKEN }} # Optional
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
vercel-org-id: ${{ vars.VERCEL_ORG_ID }} # Required
vercel-project-id: ${{ vars.VERCEL_PROJECT_ID }} # Required
alias-domains: |
${{
github.ref == 'refs/heads/main' && 'app.app.co.uk' ||
github.ref == 'refs/heads/dev' && 'dev.app.co.uk'
}}
github-comment: true
- name: Log Deployment Outputs
if: failure()
run: |
echo "Deployment URL: ${{ steps.vercel-deploy.outputs.deployment-url }}"
echo "Preview URL: ${{ steps.vercel-deploy.outputs.preview-url }}"`
コントリビューションガイド
評価
この issue はまだ評価されていません。