From c4ac095df76555450f213f9edd5fc46574ea887e Mon Sep 17 00:00:00 2001 From: Carly Gundy Date: Mon, 30 Oct 2023 17:09:34 +0100 Subject: [PATCH] replace action to add labels --- .github/workflows/check_cla.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check_cla.yml b/.github/workflows/check_cla.yml index 131df91..3255f64 100644 --- a/.github/workflows/check_cla.yml +++ b/.github/workflows/check_cla.yml @@ -85,10 +85,16 @@ jobs: — The DFINITY Foundation" - name: Add Label - uses: actions-ecosystem/action-add-labels@v1 + uses: actions/github-script@v6 if: ${{ steps.accepts_external_contrib.outputs.accepts_contrib != 'false' }} with: - labels: external-contributor + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ["external-contributor"] + }) - name: Checkout uses: actions/checkout@v3