Skip to content

Commit 92c06b2

Browse files
committed
Fix pr-deploy user creation and role setup
- Correct user creation command with proper formatting. - Update user role promotion to use `organization-admin`.
1 parent 8a146ca commit 92c06b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/pr-deploy.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,18 +440,18 @@ 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
454-
coder org members edit-role ${{ github.actor }} owner
454+
coder org members edit-role ${{ github.actor }} organization-admin
455455
456456
- name: Send Slack notification
457457
if: needs.get_info.outputs.NEW == 'true' || github.event.inputs.deploy == 'true'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy