From 219fb93d4c24f4a8b4968bee55961812876bca2e Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 18 Apr 2022 18:01:17 -0500 Subject: [PATCH] Fix auto maintainence label for bots --- .github/actions/enforce-label/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/enforce-label/action.yml b/.github/actions/enforce-label/action.yml index fff0b1c..1050154 100644 --- a/.github/actions/enforce-label/action.yml +++ b/.github/actions/enforce-label/action.yml @@ -31,12 +31,12 @@ runs: try { if (botUsers.indexOf(response.data.user.login) !== -1) { // https://docs.github.com/en/rest/reference/issues#add-labels-to-an-issue - octokit.rest.issues.addLabels({ + await github.issues.addLabels({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, labels: ['maintenance'] - }) + }); process.exit(0); } } catch (e) {