From 8b8710dea5b47e612b24fe2784dbc2af624c71c5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 15:30:18 -0700 Subject: [PATCH] chore(deps): update actions/github-script action to v7 (#128) * chore(deps): update actions/github-script action to v7 * Update GHA to use new API --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Budziwojski --- .github/workflows/repolinter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/repolinter.yml b/.github/workflows/repolinter.yml index 6c408bf2..48e405be 100644 --- a/.github/workflows/repolinter.yml +++ b/.github/workflows/repolinter.yml @@ -17,10 +17,10 @@ jobs: steps: - name: Test Default Branch id: default-branch - uses: actions/github-script@v2 + uses: actions/github-script@v7 with: script: | - const data = await github.repos.get(context.repo) + const data = await github.rest.repos.get(context.repo) return data.data && data.data.default_branch === context.ref.split('/').slice(-1)[0] - name: Checkout Self if: ${{ steps.default-branch.outputs.result == 'true' }}