diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 235d2c8b..c79e62d2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,10 +75,18 @@ jobs: }); const pr_number = items[0].number; - github.rest.issues.updateLabel({ + const issue = { issue_number: pr_number, owner: context.repo.owner, repo: context.repo.repo, - name: "autorelease: tagged", - new_name: "autorelease: published", - }) + }; + + github.rest.issues.createLabel({ + ...issue, + name: "autorelease: published" + }); + + github.rest.issues.removeLabel({ + ...issue, + name: "autorelease: tagged" + });