Skip to content

Commit

Permalink
Update GHA to use new API
Browse files Browse the repository at this point in the history
  • Loading branch information
dbudziwojskiNR committed Oct 25, 2024
1 parent d40d55c commit 0d522ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/repolinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down

0 comments on commit 0d522ac

Please sign in to comment.