Skip to content

Commit

Permalink
Updating if statement in modified test yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tefirman committed Apr 18, 2024
1 parent 5d1e850 commit 5080166
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/modified-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
- run: |
for changed_file in ${{ steps.files.outputs.added_modified }}; do
if [[ $changed_file == *"Dockerfile_"* ]]; then
echo "Do something with this ${changed_file}."
IFS="/" read -ra toolarr <<< "$changed_file"
IFS="_" read -ra tagarr <<< "$changed_file"
echo "Do something with ${toolarr[0]}, specifically ${tagarr[-1]}: ${changed_file}."
fi
done

0 comments on commit 5080166

Please sign in to comment.