use env to disable pre/post

This commit is contained in:
MoChilia
2024-07-22 11:53:58 +08:00
parent 2e05c531c4
commit f6557e8b4e

View File

@@ -40,7 +40,7 @@ branding:
runs:
using: 'node20'
pre: 'lib/cleanup/index.js'
pre-if: (! startsWith(runner.name, 'GitHub Actions'))
pre-if: (! env.AZURE_LOGIN_PRE_CLEANUP_OFF)
main: 'lib/main/index.js'
post: 'lib/cleanup/index.js'
post-if: (! startsWith(runner.name, 'GitHub Actions'))
post-if: (! env.AZURE_LOGIN_POST_CLEANUP_OFF)