From 10825c6e515d046532c901a0c9c1be0935c462ea Mon Sep 17 00:00:00 2001 From: Nicholas Wiltsie Date: Thu, 8 Aug 2024 14:21:00 -0700 Subject: [PATCH] Remove check for Bot or Organization accounts --- scripts/finalize-release.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/scripts/finalize-release.js b/scripts/finalize-release.js index 7f7b3b7..b27b3ba 100644 --- a/scripts/finalize-release.js +++ b/scripts/finalize-release.js @@ -14,15 +14,6 @@ module.exports = async ({ github, context, core }) => { process.exit() } - if ( - !['Bot', 'Organization'].includes(context.payload.pull_request.user.type) - ) { - core.setFailed( - 'Workflow should only be called for Bot- or Organization-generated release PRs' - ) - process.exit() - } - // This regex needs to kept in-sync with the pattern in create-release-pr.yaml const regex = /^automation-create-release-(.*)$/i const parsedVersion = context.payload.pull_request.head.ref.match(regex)