Skip to content

Commit

Permalink
chore(deps): update actions/github-script action to v7 (#128)
Browse files Browse the repository at this point in the history
* chore(deps): update actions/github-script action to v7

* Update GHA to use new API

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Budziwojski <[email protected]>
  • Loading branch information
renovate[bot] and dbudziwojskiNR authored Oct 25, 2024
1 parent 7971977 commit 8b8710d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/repolinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down

0 comments on commit 8b8710d

Please sign in to comment.