neon-project-create/delete: print project id to stdout (#3073)

Print project_id to GitHub Actions stdout
This commit is contained in:
Alexander Bayandin
2022-12-14 13:04:04 +00:00
committed by GitHub
parent ada5b7158f
commit d3787f9b47
2 changed files with 4 additions and 0 deletions

View File

@@ -55,6 +55,8 @@ runs:
project_id=$(echo $project | jq --raw-output '.project.id')
echo "project_id=${project_id}" >> $GITHUB_OUTPUT
echo "Project ${project_id} has been created"
env:
API_HOST: ${{ inputs.api_host }}
API_KEY: ${{ inputs.api_key }}

View File

@@ -27,6 +27,8 @@ runs:
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${API_KEY}"
echo "Project ${PROJECT_ID} has been deleted"
env:
API_HOST: ${{ inputs.api_host }}
API_KEY: ${{ inputs.api_key }}