Skip to content

Commit e32f4ec

Browse files
authored
Update repolinter.yml (#47)
1 parent ed74190 commit e32f4ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/repolinter.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
steps:
1616
- name: Test Default Branch
1717
id: default-branch
18-
uses: actions/github-script@v2
18+
uses: actions/github-script@v6
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' }}
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
2626
- name: Run Repolinter
2727
if: ${{ steps.default-branch.outputs.result == 'true' }}
2828
uses: newrelic/repolinter-action@v1

0 commit comments

Comments
 (0)