diff --git a/.github/workflows/rerun.yml b/.github/workflows/rerun.yml index 99cd9d86c2..6a85f3dc97 100644 --- a/.github/workflows/rerun.yml +++ b/.github/workflows/rerun.yml @@ -151,6 +151,16 @@ jobs: username='${{ env.M365_USERNAME_4 }}' echo "M365_ACCOUNT_NAME=$username" >> $GITHUB_ENV + - name: Clean resource + if: always() + run: | + npx ts-node src/scripts/clean.ts + + - name: Switch M365 account + run: | + username='${{ env.M365_USERNAME_5 }}' + echo "M365_ACCOUNT_NAME=$username" >> $GITHUB_ENV + - name: Clean resource if: always() run: |