File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,16 @@ jobs:
151151 username='${{ env.M365_USERNAME_4 }}'
152152 echo "M365_ACCOUNT_NAME=$username" >> $GITHUB_ENV
153153
154+ - name : Clean resource
155+ if : always()
156+ run : |
157+ npx ts-node src/scripts/clean.ts
158+
159+ - name : Switch M365 account
160+ run : |
161+ username='${{ env.M365_USERNAME_5 }}'
162+ echo "M365_ACCOUNT_NAME=$username" >> $GITHUB_ENV
163+
154164 - name : Clean resource
155165 if : always()
156166 run : |
Original file line number Diff line number Diff line change @@ -192,6 +192,7 @@ jobs:
192192 M365_USERNAME_2 : " test15@xxbdw.onmicrosoft.com"
193193 M365_USERNAME_3 : " test16@xxbdw.onmicrosoft.com"
194194 M365_USERNAME_4 : " test17@xxbdw.onmicrosoft.com"
195+ M365_USERNAME_5 : " ttktest01@xxbdw.onmicrosoft.com"
195196 M365_DISPLAY_NAME : " ttktest"
196197 M365_TENANT_ID : ${{ secrets.TEST_CLEAN_TENANT_ID }}
197198 M365_COLLABORATOR : " haolong@xxbdw.onmicrosoft.com"
@@ -232,6 +233,16 @@ jobs:
232233 $user=$users[$index]
233234 echo "account index: $index"
234235 echo "M365_ACCOUNT_NAME=$user" >> $env:GITHUB_ENV
236+
237+ - name : Set m365 account for Outlook preview (unix)
238+ if : matrix.os != 'windows-latest' && contains(matrix.test-case, 'localdebug-obo-tab') == true
239+ run : |
240+ echo "M365_ACCOUNT_NAME=${{ env.M365_USERNAME_5 }}" >> $GITHUB_ENV
241+
242+ - name : Set m365 account for Outlook preview (win)
243+ if : matrix.os == 'windows-latest' && contains(matrix.test-case, 'localdebug-obo-tab') == true
244+ run : |
245+ echo "M365_ACCOUNT_NAME=${{ env.M365_USERNAME_5 }}" >> $env:GITHUB_ENV
235246
236247 - name : Checkout branch
237248 uses : actions/checkout@v3
You can’t perform that action at this time.
0 commit comments