From 6251c32b81ae29beb9130983c2475ae392aefa4f Mon Sep 17 00:00:00 2001 From: Nicholas Wiltsie Date: Tue, 30 Jul 2024 16:06:30 -0700 Subject: [PATCH] Apparently the user is an Organization --- .github/workflows/create-new-tag.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-new-tag.yaml b/.github/workflows/create-new-tag.yaml index 2740e6b..ffc4473 100644 --- a/.github/workflows/create-new-tag.yaml +++ b/.github/workflows/create-new-tag.yaml @@ -29,8 +29,8 @@ jobs: process.exit() } - if (context.payload.pull_request.user.type !== 'bot') { - core.setFailed('Workflow should only be called for bot-generated release PRs') + 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() }