Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 6727142

Browse files
committed
use standard env vars
1 parent 6d9004b commit 6727142

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

entrypoint.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/sh -l
22

3-
command="pscale password create $1 $2 $3 --org $4 \
4-
--service-token $PLANETSCALE_TOKEN --service-token-id $PLANETSCALE_TOKEN_NAME -f json"
3+
command="pscale password create $1 $2 $3 --org $4 -f json"
54

65
if [ -n "$5" ];then
76
command="$command --role $5"

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ This GitHub Action can be used within your workflows to create new passwords for
66

77
Before you can use this Action, you'll need to configure a service token that has permission to create branches on your database. Refer to our docs on [how to create a service token](https://planetscale.com/docs/concepts/service-tokens) for more details. Once the service token has been created, the following repository secrets must also be set:
88

9-
- `PLANETSCALE_TOKEN_NAME`
10-
- `PLANETSCALE_TOKEN`
9+
- `PLANETSCALE_SERVICE_TOKEN_ID`
10+
- `PLANETSCALE_SERVICE_TOKEN_ID`
1111

1212
These values will be used to authenticate to the PlanetScale service.
1313

@@ -36,8 +36,8 @@ jobs:
3636
branch_name: main
3737
name: mynewpassword
3838
env:
39-
PLANETSCALE_TOKEN_NAME: ${{ secrets.PLANETSCALE_TOKEN_NAME }}
40-
PLANETSCALE_TOKEN: ${{ secrets.PLANETSCALE_TOKEN }}
39+
PLANETSCALE_SERVICE_TOKEN_ID: ${{ secrets.PLANETSCALE_SERVICE_TOKEN_ID }}
40+
PLANETSCALE_SERVICE_TOKEN_ID: ${{ secrets.PLANETSCALE_SERVICE_TOKEN_ID }}
4141
- name: Get the new credentials
4242
run: |
4343
echo "Hostname: ${{ steps.create_password.outputs.hostname }}" \

0 commit comments

Comments
 (0)