Allow a user to manually opt-out of Pages site enablement

This commit is contained in:
James M. Greene
2022-08-02 20:45:01 -05:00
parent 677bce1797
commit 0455a16aca
5 changed files with 15 additions and 5 deletions

View File

@@ -9,7 +9,9 @@ const {getContext} = require('./context')
async function main() {
try {
const context = getContext()
await enablePages(context)
if (context.enablement) {
await enablePages(context)
}
await getPagesBaseUrl(context)
} catch (error) {
core.setFailed(error)