diff --git a/.github/workflows/repolinter.yml b/.github/workflows/repolinter.yml index eb0ddce..48e405b 100644 --- a/.github/workflows/repolinter.yml +++ b/.github/workflows/repolinter.yml @@ -20,7 +20,7 @@ jobs: 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' }}