Skip to content

Commit

Permalink
split string by newline
Browse files Browse the repository at this point in the history
  • Loading branch information
rob93c committed Oct 7, 2023
1 parent 5ab2f28 commit c44c4a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ jobs:
- name: Set Docker tags
id: docker-tags
run: |
IFS=$'\n' read -ra tags <<< "${{ steps.metadata.outputs.tags }}"
cleaned_tags=()
for tag in ${{ steps.metadata.outputs.tags }}; do
for tag in "${tags[@]}"; do
if [[ "$tag" != *master* ]]; then
cleaned_tags+=("$tag")
fi
Expand Down

0 comments on commit c44c4a5

Please sign in to comment.