We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed6a23c commit 6224de5Copy full SHA for 6224de5
.github/workflows/repolinter.yml
@@ -15,10 +15,10 @@ jobs:
15
steps:
16
- name: Test Default Branch
17
id: default-branch
18
- uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6
+ uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
19
with:
20
script: |
21
- const data = await github.repos.get(context.repo)
+ const data = await github.rest.repos.get(context.repo)
22
return data.data && data.data.default_branch === context.ref.split('/').slice(-1)[0]
23
- name: Checkout Self
24
if: ${{ steps.default-branch.outputs.result == 'true' }}
0 commit comments