Skip to content

Commit

Permalink
fixing global package usage (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
duskpoet authored Aug 15, 2023
1 parent b7c266a commit cc0fe5e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,28 @@ inputs:
project_id:
required: true
description: "The Neon project id"
type: string
branch_id:
type: string
description: "The Neon branch id"
deprecationMessage: "The `branch_id` input is deprecated in favor of `branch`"
api_key:
description: "The Neon API key, read more at https://neon.tech/docs/manage/api-keys"
required: true
type: string
branch:
description: "The Neon branch name or id"
type: string

runs:
using: "composite"
steps:
- uses: actions/setup-node@v3
- run: yarn add global neonctl@v1
- run: yarn global add neonctl@v1
shell: bash
- name: Delete branch
shell: bash
env:
NEON_API_KEY: ${{ inputs.api_key }}
run: |
if [ -z "${{ inputs.branch }}" ]; then
yarn -s run neonctl branches delete ${{ inputs.branch_id }} --project-id ${{ inputs.project_id }}
neonctl branches delete ${{ inputs.branch_id }} --project-id ${{ inputs.project_id }}
else
yarn -s run neonctl branches delete ${{ inputs.branch }} --project-id ${{ inputs.project_id }}
neonctl branches delete ${{ inputs.branch }} --project-id ${{ inputs.project_id }}
fi

0 comments on commit cc0fe5e

Please sign in to comment.