For AI agents: the complete documentation index is available at /ja/llms.txt, the full documentation bundle is available at /ja/llms-full.txt, and this page is available as Markdown at /ja/references/inputs/optional/cleanup-deployment.md.
  • 日本語
  • cleanup-deployment

    trueにすると、削除したGitHubブランチに紐づくVercelのDeploymentを削除します。デフォルトはfalseです。

    Warning

    deleteイベントをトリガーとするWorkflowで有効なオプションです。deleteイベント以外ではこのオプションがtrueでも動作しません。

    使用例

    name: Cleanup Vercel deployments
    
    on:
      delete:
    
    jobs:
      cleanup:
        if: ${{ github.event.ref_type == 'branch' }}
        name: Cleanup deployments
        runs-on: ubuntu-latest
    
        steps:
          - uses: nexterias/actions-vercel@v2
            with:
              token: ${{ secrets.VERCEL_TOKEN }}
              org-id: ${{ secrets.VERCEL_ORG_ID }}
              project-id: ${{ secrets.VERCEL_PROJECT_ID }}
              cleanup-deployment: true