Skip to content

Fix the workflow

Fix the workflow #8

name: Clean up Preview Deployment
on:
pull_request:
types: [closed]
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} # You can generate a Fly API token in your account settings
jobs:
delete-preview:
runs-on: ubuntu-latest
steps:
- name: Delete Fly app
uses: superfly/[email protected]
- name: Delete Neon Branch
uses: neondatabase/[email protected]
with:
project_id: ${{ var.NEON_PROJECT_ID }}

Check failure on line 19 in .github/workflows/cleanup-preview.yml

View workflow run for this annotation

GitHub Actions / Clean up Preview Deployment

Invalid workflow file

The workflow is not valid. .github/workflows/cleanup-preview.yml (Line: 19, Col: 23): Unrecognized named-value: 'var'. Located at position 1 within expression: var.NEON_PROJECT_ID
branch: preview/${{ github.event.pull_request.head.ref }}
api_key: ${{ secrets.NEON_API_KEY }}