Skip to content

Commit

Permalink
Extend list of files that should be ignored for triggering release (#203
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Milica-Cvrkota-IBM authored Jul 29, 2024
1 parent 7e295be commit 5972c4b
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions ci/scripts/tag-new-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,22 @@ fi

only_ci_changes=true
for file in $(git diff --name-only "$latest_release"..HEAD); do
# check if $file does not start with "ci/"
if [[ ! $file =~ ^ci/ ]]; then
echo "Found file that is not in ci/ directory: $file"
only_ci_changes=false
break
# check if the file path does not start with "ci/", ".", doesn't end with .md, nor it's a Makefile
if [[ $file == ci* ]]; then
continue
fi
if [[ $file == .* ]]; then
continue
fi
if [[ $file == *.md ]]; then
continue
fi
if [[ $file =~ Makefile ]]; then
continue
fi
echo "Found file that is not in ci/ directory, it's not a hidden file/directory, an .md file nor Makefile: $file"
only_ci_changes=false
break
done
# Assisted by WCA@IBM
# Latest GenAI contribution: ibm/granite-20b-code-instruct-v2
Expand Down

0 comments on commit 5972c4b

Please sign in to comment.