Prevent the static purge scripts running in combination without a user (#2832)
--- #### Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No #### Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [x] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Test - [ ] 💻 CI/Deployment - [ ] 🧹 Tech Debt/Cleanup #### Issue(s) <!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. --> * #<issue> #### Test Plan <!-- How will this be tested prior to merging.--> - [x] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
26bf24c77e
commit
bf2f66398b
@ -27,7 +27,11 @@ inputs:
|
||||
description: Secret value of for AZURE_CLIENT_SECRET
|
||||
azure-tenant-id:
|
||||
description: Secret value of for AZURE_TENANT_ID
|
||||
|
||||
m365-admin-user:
|
||||
description: Secret value of for M365TENANT_ADMIN_USER
|
||||
m365-admin-password:
|
||||
description: Secret value of for M365TENANT_ADMIN_PASSWORD
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
@ -54,7 +58,7 @@ runs:
|
||||
./setRetention.ps1
|
||||
|
||||
- name: Run the static purge script set
|
||||
if: ${{ inputs.folder-prefix == '' }}
|
||||
if: ${{ inputs.folder-prefix == '' && inputs.user != '' }}
|
||||
shell: pwsh
|
||||
working-directory: ./src/cmd/purge/scripts
|
||||
env:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user