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' }}