From d77d873a42b1b0c5df4d5f934c21f131cc8a3f11 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Wed, 2 Oct 2024 16:14:12 -0400 Subject: [PATCH 1/4] actions: remove duplicate sendemail command that was throwing errors --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 264968fb..83d7e501 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -826,7 +826,6 @@ jobs: $gam create alias $newalias user $newuser $gam create group $newgroup name "GHA $JID group" description "This is a description" isarchived true $gam user $gam_user sendemail recipient $newuser subject "test message $newbase" message "GHA test message" - $gam user $gam_user sendemail recipient exchange@pdl.jaylee.us subject "test ${tstamp}" message "test message" $gam config enable_dasa false save $gam create contact firstname GHA lastname "$JID" email work "${newbase}@example.com" primary $gam print contacts From 24f2efb833e4daa4404d69f90a13072fce13b693 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Wed, 2 Oct 2024 16:36:32 -0400 Subject: [PATCH 2/4] actions: assign new user license sooner to avoid Gmail send error --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 83d7e501..bc0218fc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -820,6 +820,7 @@ jobs: echo "Created shared drive ${driveid}" # 9/17/24 - temp create in root due to Google API issues creating users in new OUs $gam create user $newuser firstname GHA lastname $JID displayname "Github Actions ${JID}" password random recoveryphone 12125121110 recoveryemail jay0lee@gmail.com gha.jid $JID languages en+,en-GB- # ou "${newou}" + $gam user $newuser add license workspaceenterpriseplus $gam user $newuser update photo https://dummyimage.com/400x600/000/fff $gam user $newuser get photo $gam user $newuser delete photo @@ -829,7 +830,6 @@ jobs: $gam config enable_dasa false save $gam create contact firstname GHA lastname "$JID" email work "${newbase}@example.com" primary $gam print contacts - $gam user $newuser add license workspaceenterpriseplus $gam print privileges $gam config enable_dasa true save $gam update cigroup $newgroup security memberrestriction 'member.type == 1 || member.customer_id == groupCustomerId()' From a34b6610d209b89d14b2eb4a06b43c80d4c29771 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Wed, 2 Oct 2024 16:50:04 -0400 Subject: [PATCH 3/4] actions: just send email to someone else (grr) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bc0218fc..a955cdd4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -826,7 +826,7 @@ jobs: $gam user $newuser delete photo $gam create alias $newalias user $newuser $gam create group $newgroup name "GHA $JID group" description "This is a description" isarchived true - $gam user $gam_user sendemail recipient $newuser subject "test message $newbase" message "GHA test message" + $gam user $gam_user sendemail recipient dev-null@pdl.jaylee.us subject "test message $newbase" message "GHA test message" $gam config enable_dasa false save $gam create contact firstname GHA lastname "$JID" email work "${newbase}@example.com" primary $gam print contacts From 79f83f34fd2d801fe324477017e6fee2456a201b Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Wed, 2 Oct 2024 17:02:49 -0400 Subject: [PATCH 4/4] actions: disable create contact command that may be actual issue --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a955cdd4..5822fc59 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -828,7 +828,7 @@ jobs: $gam create group $newgroup name "GHA $JID group" description "This is a description" isarchived true $gam user $gam_user sendemail recipient dev-null@pdl.jaylee.us subject "test message $newbase" message "GHA test message" $gam config enable_dasa false save - $gam create contact firstname GHA lastname "$JID" email work "${newbase}@example.com" primary + #$gam create contact firstname GHA lastname "$JID" email work "${newbase}@example.com" primary $gam print contacts $gam print privileges $gam config enable_dasa true save