From 50801667c2ad964066bd9e885e7b819e32775ab1 Mon Sep 17 00:00:00 2001 From: tefirman Date: Thu, 18 Apr 2024 16:46:20 -0600 Subject: [PATCH] Updating if statement in modified test yml --- .github/workflows/modified-test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/modified-test.yml b/.github/workflows/modified-test.yml index 75f1569..3a4e663 100644 --- a/.github/workflows/modified-test.yml +++ b/.github/workflows/modified-test.yml @@ -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