Commit 9b03299 1 parent f52a57e commit 9b03299 Copy full SHA for 9b03299
File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,18 @@ branding:
8
8
inputs :
9
9
project_id :
10
10
required : true
11
+ description : " The Neon project id"
11
12
type : string
12
13
branch_id :
13
- required : true
14
14
type : string
15
+ deprecationMessage : " The `branch_id` input is deprecated in favor of `branch`"
15
16
api_key :
17
+ description : " The Neon API key, read more at https://neon.tech/docs/manage/api-keys"
16
18
required : true
19
+ type : string
20
+ branch :
21
+ description : " The Neon branch name or id"
22
+ type : string
17
23
18
24
runs :
19
25
using : " composite"
26
32
env :
27
33
NEON_API_KEY : ${{ inputs.api_key }}
28
34
run : |
29
- yarn neonctl branches delete ${{ inputs.branch_id }} --project-id ${{ inputs.project_id }}
35
+ if [ -z "${{ inputs.branch }}" ]; then
36
+ yarn -s run neonctl branches delete ${{ inputs.branch_id }} --project-id ${{ inputs.project_id }}
37
+ else
38
+ yarn -s run neonctl branches delete ${{ inputs.branch }} --project-id ${{ inputs.project_id }}
39
+ fi
You can’t perform that action at this time.
0 commit comments