From b80338290f25f1b16e855c4d4f3f2b43d353f54e Mon Sep 17 00:00:00 2001 From: Collin McNeese Date: Mon, 12 Dec 2022 11:22:41 -0600 Subject: [PATCH] remove actions-ecosystem deps Signed-off-by: Collin McNeese --- .github/workflows/issue_ops.yml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/.github/workflows/issue_ops.yml b/.github/workflows/issue_ops.yml index 192d9b6..203ccef 100644 --- a/.github/workflows/issue_ops.yml +++ b/.github/workflows/issue_ops.yml @@ -37,11 +37,16 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.ghcr_password }} GH_TOKEN: ${{ secrets.ghcr_password }} - - uses: actions-ecosystem/action-add-labels@v1 + - uses: actions/github-script@v6 if: always() with: - github_token: ${{ secrets.GITHUB_TOKEN }} - labels: actions-importer-running + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ['actions-importer-running'] + }) - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 with: @@ -97,7 +102,7 @@ jobs: if: always() with: name: output - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 with: script: | const fs = require('fs') @@ -132,7 +137,7 @@ jobs: if: always() with: name: output - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 with: script: | const fs = require('fs') @@ -195,7 +200,7 @@ jobs: echo ::set-output name=output::$pullRequest env: pullRequestPattern: "Pull request: " - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 env: PULL_REQUEST_URL: "${{ steps.pull-request-url.outputs.output }}" with: @@ -224,7 +229,7 @@ jobs: if: always() && needs.execute-actions-importer.result == 'failure' with: name: logs - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 if: always() && needs.execute-actions-importer.result == 'failure' with: script: | @@ -247,8 +252,13 @@ jobs: repo: context.repo.repo, body }) - - uses: actions-ecosystem/action-remove-labels@v1 + - uses: actions/github-script@v6 if: always() with: - github_token: ${{ secrets.GITHUB_TOKEN }} - labels: actions-importer-running + script: | + await github.rest.issues.removeLabel({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + name: 'actions-importer-running' + });