Skip to content

Commit

Permalink
Remove check for Bot or Organization accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
nwiltsie committed Aug 8, 2024
1 parent 7cdc315 commit 10825c6
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions scripts/finalize-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 10825c6

Please sign in to comment.