Skip to content

Commit

Permalink
workflows: linting: Fix shellcheck SC2043
Browse files Browse the repository at this point in the history
> This loop will only ever run once. Bad quoting or missing glob/expansion?

Update logic to remove the loop and simplify

Signed-off-by: stevenhorsman <[email protected]>
  • Loading branch information
stevenhorsman committed Nov 13, 2024
1 parent 413ece8 commit 123504e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/test-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,8 @@ jobs:
id: docker-tag
shell: bash
run: |
for path in "${{matrix.targets}}"; do
file_name=$(basename "$path")
name="${file_name##*.}"
output_paths+=("${name,,}")
done
echo "DOCKER_TAG=${output_paths[*]}" >> "$GITHUB_ENV"
file_name=$(basename "${{matrix.targets}}")
echo "DOCKER_TAG=${file_name##*.}" >> "$GITHUB_ENV"
- name: Build and push
uses: docker/build-push-action@v6
with:
Expand Down

0 comments on commit 123504e

Please sign in to comment.