Skip to content

Add rich text editor (tiptap) #214

Add rich text editor (tiptap)

Add rich text editor (tiptap) #214

Workflow file for this run

name: Drop the database associated with the PR
on:
pull_request:
types: [closed]
env:
target_db_name: pr-${{ github.event.number }}
neon_project_id: fancy-mouse-984056
neon_api_key: ${{ secrets.NEON_API_KEY }}
jobs:
drop-db:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'dependencies') }}
runs-on: ubuntu-latest
steps:
- name: Drop the PR database
run: |
curl -s -X DELETE "https://console.neon.tech/api/v1/projects/${{ env.neon_project_id }}/databases/$(
curl -s 'https://console.neon.tech/api/v1/projects/${{ env.neon_project_id }}/databases' \
-H 'accept: application/json' \
-H 'Authorization: Bearer ${{ env.neon_api_key }}' |
jq -c '.[] | select(.name | inside("${{ env.target_db_name }}")) | .id'
)" \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${{ env.neon_api_key }}' \
--insecure \
--output res.body \
--write-out %{http_code} \
> res.status_code 2> res.errors
echo "Status: $(cat res.status_code)"
echo "Body: $(cat res.body)"
if [[ $(cat res.status_code) -ne 200 ]]; then exit 1; fi