Skip to content

Commit

Permalink
Update action.yml (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
barrfalk authored May 22, 2023
1 parent c124004 commit 31e3816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ runs:
oc project ${{ inputs.oc_namespace }}
# Clean previous image, if any
IS="${{ steps.vars.outputs.imageStream }}"
for i in "${IS}"
IFS=" " read -ra IS <<< "${{ steps.vars.outputs.imageStream }}"
for i in "${IS[@]}"
do
[ ! $(oc get is -o name | grep ^imagestream.image.openshift.io/${i}$) ]|| oc delete is/${i}
done
Expand Down

0 comments on commit 31e3816

Please sign in to comment.