setup-pscale-action icon indicating copy to clipboard operation
setup-pscale-action copied to clipboard

docs "Create a password for a branch" outdated

Open Cam-Bread opened this issue 1 year ago • 0 comments

It seems that the "Create a password for a branch" example is outdated in the docs here: https://planetscale.com/docs/devops/github-actions

  1. pscale pasword create requires a password name. So the first line should be something like:
response=$(pscale password create ${{ secrets.PLANETSCALE_DATABASE_NAME }} ${{ env.PSCALE_BRANCH_NAME }}  github-action-password -f json --org ${{ secrets.PLANETSCALE_ORG_NAME }})
  1. It does not seem like github actions allow the DATABASE_URL env value to be set for some reason. the lines:
 echo "DATABASE_URL=$database_url" >> $GITHUB_ENV
 echo "::add-mask::$DATABASE_URL"

produce the error "Warning: Can't add secret mask for empty string in ##[add-mask] command."

Cam-Bread avatar May 23 '24 16:05 Cam-Bread