Skip to content

Commit b5d6efe

Browse files
committed
fix(workflow): correct user creation in deployment script
- Update user creation command to use `--username` instead of `--user`. - Include `--first-user-trial=false` to disable trial by default.
1 parent 8a146ca commit b5d6efe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/pr-deploy.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,14 +440,14 @@ jobs:
440440
--first-user-username pr${{ env.PR_NUMBER }}-admin \
441441
--first-user-email pr${{ env.PR_NUMBER }}@coder.com \
442442
--first-user-password $password \
443+
--first-user-trial=false \
443444
--use-token-as-session \
444445
https://${{ env.PR_HOSTNAME }}
445446
446447
# Create a user for the github.actor
447448
coder users create \
448-
--user ${{ github.actor }} \
449-
--password $password \
450-
--email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" \ # this will be overwritten by the user's email when they login via github
449+
--username ${{ github.actor }} \
450+
--email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" \
451451
--login-type github
452452
453453
# promote the user to admin role

0 commit comments

Comments
 (0)