chore: split webhook logs vertically due to lack of space #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clean up Preview | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
delete-preview: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
run_install: false | |
- name: Delete Neon Branch | |
uses: neondatabase/delete-branch-action@v3.1.3 | |
with: | |
project_id: ${{ secrets.NEON_PROJECT_ID }} | |
branch: preview/pr-${{ github.event.number }}-${{ github.event.pull_request.head.ref }} | |
api_key: ${{ secrets.NEON_API_KEY }} | |
- name: Install Vercel CLI | |
run: pnpm i -g vercel@latest | |
- name: Delete Vercel Environment Information | |
run: | | |
vercel env rm DATABASE_URL preview ${{ steps.branch-name.outputs.current_branch }} --yes --token=${{ secrets.VERCEL_TOKEN }} | |
vercel env rm DIRECT_DATABASE_URL preview ${{ steps.branch-name.outputs.current_branch }} --yes --token=${{ secrets.VERCEL_TOKEN }} | |