Skip to content

Commit 6224de5

Browse files
Updated github script action in repolinter.yml
1 parent ed6a23c commit 6224de5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/repolinter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
steps:
1616
- name: Test Default Branch
1717
id: default-branch
18-
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6
18+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
1919
with:
2020
script: |
21-
const data = await github.repos.get(context.repo)
21+
const data = await github.rest.repos.get(context.repo)
2222
return data.data && data.data.default_branch === context.ref.split('/').slice(-1)[0]
2323
- name: Checkout Self
2424
if: ${{ steps.default-branch.outputs.result == 'true' }}

0 commit comments

Comments
 (0)