From 48bed5fada94e3c35b436b673080271f4d492f3a Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Fri, 4 Feb 2022 18:56:53 +0200 Subject: [PATCH] ci: fix missing PR number in canary release workflow --- .github/workflows/canary.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/canary.yaml b/.github/workflows/canary.yaml index 6a6d28a407..c18932b69d 100644 --- a/.github/workflows/canary.yaml +++ b/.github/workflows/canary.yaml @@ -70,6 +70,7 @@ jobs: ); core.exportVariable('PR_URL', pull_request.url); + core.exportVariable('PR_NUMBER', pull_request.number); core.exportVariable('NPM_TAG', packageJSON.publishConfig.tag); core.exportVariable('NPM_VERSION', packageJSON.version); @@ -94,7 +95,7 @@ jobs: const npmVersion = process.env.NPM_VERSION; const npmURL = 'https://www.npmjs.com/package/graphql/v/' + npmVersion; github.rest.issues.createComment({ - issue_number: context.issue.number, + issue_number: process.env.PR_NUMBER, owner: context.repo.owner, repo: context.repo.repo, body: