Skip to content

Commit 6ebd237

Browse files
authored
[BRE-849] - Update bwwl File Argument (#399)
1 parent 408903c commit 6ebd237

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/workflow-linter.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@ jobs:
3333
fi
3434
3535
count=$(( 0 ))
36+
files_to_lint=""
3637
for file in $changed_files; do
3738
if [[ "$file" == ".github/workflows/"* ]]; then
3839
count=$(( $count + 1 ))
39-
fi
40+
files_to_lint="$files_to_lint $file"
41+
fi
4042
done
4143
4244
echo "Workflow files changed: $count"
45+
echo "Files to lint: $files_to_lint"
46+
echo "changed_files=$files_to_lint" >> $GITHUB_OUTPUT
4347
echo "changed_files_count=$count" >> $GITHUB_OUTPUT
4448
4549
- name: Download actionlint configuration
@@ -62,5 +66,9 @@ jobs:
6266
run: python -m pip install --upgrade bitwarden_workflow_linter
6367

6468
- name: Lint
69+
env:
70+
files: ${{ steps.changed-workflows.outputs.changed_files }}
6571
if: steps.changed-workflows.outputs.changed_files_count != '0'
66-
run: bwwl lint -f .github/workflows
72+
run: |
73+
echo $files
74+
bwwl lint -f $files

0 commit comments

Comments
 (0)