Skip to content

Commit 0469110

Browse files
committed
ci(lint): fix current path to follow directory lint settings
1 parent b7af5c9 commit 0469110

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ jobs:
1212
name: Lint
1313
runs-on: ubuntu-latest
1414
env:
15+
ANSIBLE_ROLE: monolithprojects.github_actions_runner
1516
SUITE: default
1617
steps:
1718
- name: Check out the codebase.
1819
uses: actions/checkout@v3
1920
with:
20-
path: "${{ github.repository }}"
21+
path: ${{ env.ANSIBLE_ROLE }}
2122

2223
- name: Set up Python 3.
2324
uses: actions/setup-python@v4
@@ -32,4 +33,4 @@ jobs:
3233
3334
- name: Lint code.
3435
run: |
35-
ansible-lint --exclude molecule/ --exclude .github/
36+
cd $GITHUB_WORKSPACE/$ANSIBLE_ROLE && ansible-lint --exclude molecule/ --exclude .github/

0 commit comments

Comments
 (0)