Skip to content

Commit 350e76c

Browse files
committed
comment github user creation
1 parent d454ebd commit 350e76c

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/pr-deploy.yaml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,6 @@ jobs:
429429
run: |
430430
set -euo pipefail
431431
432-
# Create first user
433-
434432
# create a masked random password 12 characters long
435433
password=$(openssl rand -base64 16 | tr -d "=+/" | cut -c1-12)
436434
@@ -447,18 +445,14 @@ jobs:
447445
https://${{ env.PR_HOSTNAME }}
448446
449447
# Create a user for the github.actor
450-
# Try to fetch the public email if it is set otherwise fallback to a default one
451-
EMAIL=$(gh api /user/${{ github.actor }} | jq -r '.email')
452-
if [ -z "$EMAIL" ]; then
453-
EMAIL="${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
454-
fi
455-
coder users create \
456-
--username ${{ github.actor }} \
457-
--email "$EMAIL" \
458-
--login-type github
448+
# TODO: update once https://github.com/coder/coder/issues/15466 is resolved
449+
# coder users create \
450+
# --username ${{ github.actor }} \
451+
# --login-type github
459452
460453
# promote the user to admin role
461-
coder org members edit-role ${{ github.actor }} organization-admin
454+
# coder org members edit-role ${{ github.actor }} organization-admin
455+
# TODO: update once https://github.com/coder/internal/issues/207 is resolved
462456
463457
- name: Send Slack notification
464458
if: needs.get_info.outputs.NEW == 'true' || github.event.inputs.deploy == 'true'

0 commit comments

Comments
 (0)