Skip to content

Commit

Permalink
Fix setup-linters step in lint action. (#36)
Browse files Browse the repository at this point in the history
The composite action was not usable from other repositories.
  • Loading branch information
SanjayVas authored May 17, 2023
1 parent 063e3f8 commit c756dd2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
shell: bash
steps:
- name: Check out revision
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down
7 changes: 6 additions & 1 deletion lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,18 @@ inputs:
runs:
using: composite
steps:
# Check out repo so we can use local actions.
- uses: actions/checkout@v3
with:
path: .github/actions

- uses: actions/setup-java@v3
with:
distribution: zulu
java-version: '11'

- name: Set up linters
uses: ./setup-linters
uses: ./.github/actions/setup-linters

- name: Install cpplint
shell: bash
Expand Down

0 comments on commit c756dd2

Please sign in to comment.