From 241f21c28b3fe2b3a1bbf078d0c57c3e7ce17dc7 Mon Sep 17 00:00:00 2001 From: Stephan Date: Thu, 16 Dec 2021 14:06:20 +0100 Subject: [PATCH] fix --- .github/workflows/assign-to-project.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/assign-to-project.yml b/.github/workflows/assign-to-project.yml index b653b02..fc3f1a4 100644 --- a/.github/workflows/assign-to-project.yml +++ b/.github/workflows/assign-to-project.yml @@ -74,15 +74,16 @@ jobs: } console.log('determine content type...') + const event_name = context.eventName var content_type = null - if (github.event_name === 'issues') { + if (event_name === 'issues') { content_type = 'Issue' } - if (github.event_name === 'pull_request') { + if (event_name === 'pull_request') { content_type = 'PullRequest' } if (content_type === null) { - core.setFailed(`Unexpected event name "${github.event_name}".`) + core.setFailed(`Unexpected event name "${event_name}".`) return } else {