Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/aomp-shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
id: changed-files
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323
with:
separator: ' '
separator: '\n'
skip_initial_fetch: true
base_sha: 'HEAD~1'
sha: 'HEAD'
Expand All @@ -29,8 +29,8 @@ jobs:
- name: Run shellcheck
run: |
shellcheck_status=0
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
if [[ $file == *.sh ]] || [[ $(file "$file") =~ "shell script" ]]; then
while read -r file; do
if [[ "$file" == *.sh ]] || [[ $(file "$file") =~ "shell script" ]]; then
file_dir=$(dirname "$file")
file_name=$(basename "$file")

Expand All @@ -43,6 +43,6 @@ jobs:

popd || exit 1
fi
done
done <<< "${{ steps.changed-files.outputs.all_changed_files }}"
exit $shellcheck_status
shell: bash {0}