From dba7969cec02009d5c5568f3a6b5074ccfadaa1d Mon Sep 17 00:00:00 2001 From: Daniel Gonzalez Date: Mon, 20 Feb 2023 22:05:11 +0100 Subject: [PATCH] fix: Target PR correctly when assigning autorelease labels --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b11e1a..e1ebed7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -65,13 +65,13 @@ jobs: with: script: | github.rest.issues.addLabels({ - issue_number: ${{ needs.release-please.outputs.pr_number }}, + issue_number: ${{ needs.release-please.outputs.pr.number }}, owner: context.repo.owner, repo: context.repo.repo, labels: ["autorelease: published"] }) github.rest.issues.removeLabel({ - issue_number: ${{ needs.release-please.outputs.pr_number }}, + issue_number: ${{ needs.release-please.outputs.pr.number }}, owner: context.repo.owner, repo: context.repo.repo, name: "autorelease: tagged"