From f69b4f207e2faea249b9baf13c515b23db62f544 Mon Sep 17 00:00:00 2001 From: Eric Vantillard Date: Tue, 14 Mar 2023 00:43:05 +0100 Subject: [PATCH] build: update issue triage workflow The previous version use a deprecated action. Now we use the github script action (provided by github). --- .github/workflows/add-triage-label.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/add-triage-label.yml b/.github/workflows/add-triage-label.yml index 48ae881ac..56da33e00 100644 --- a/.github/workflows/add-triage-label.yml +++ b/.github/workflows/add-triage-label.yml @@ -1,17 +1,23 @@ +# https://docs.github.com/en/actions/managing-issues-and-pull-requests/adding-labels-to-issues + +name: Label issues on: issues: types: - reopened - opened - -name: Add triage label - jobs: - automate-issues-labels: - name: Add triage label to issue + label_issues: runs-on: ubuntu-latest + permissions: + issues: write steps: - - name: initial labeling - uses: andymckay/labeler@1.0.4 + - uses: actions/github-script@v6 with: - add-labels: "triage" + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ["triage"] + })