From e3720bb4a6ee331bb3bd3cc85684d4ad754d0db6 Mon Sep 17 00:00:00 2001 From: Kowlin Date: Thu, 9 Jan 2020 14:09:41 +0100 Subject: [PATCH] Updated to GH Scripts (#3295) --- .github/workflows/auto_labeler.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/auto_labeler.yml b/.github/workflows/auto_labeler.yml index 7d09c14a8..5440e4e33 100644 --- a/.github/workflows/auto_labeler.yml +++ b/.github/workflows/auto_labeler.yml @@ -8,10 +8,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - name: Apply Triage Label - uses: actions/github@v1.0.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: actions/github-script@0.4.0 with: - args: 'label "Status: Needs Triage"' + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + github.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ['Status: Needs Triage'] + })