File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff 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
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
You can’t perform that action at this time.
0 commit comments