Skip to content

Commit b7055c6

Browse files
committed
[KOGITO-9428]Update Operator SDK
Signed-off-by: desmax74 <mdessi@redhat.com>
1 parent 8a57884 commit b7055c6

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

hack/checkCreatedAtAnnotation.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@
1414
# limitations under the License.
1515

1616
changed_files=$(git status -s)
17-
printf "${changed_files}"
18-
printf "/n"
17+
printf "$changed_files"
18+
check_file=$(expr "$changed_files" == "M bundle/manifests/sonataflow-operator.clusterserviceversion.yaml")
19+
echo "check_file"
1920

20-
if [[ "${changed_files}" = "M bundle/manifests/sonataflow-operator.clusterserviceversion.yaml" ]] ; then
21-
printf "clusterserviceversion.yaml with createdAt /n"
21+
if [[ "check_file" == "0" ]] ; then
22+
printf "Cheking if the createdAt annotation has changed"
23+
##@TODO
2224
changed_files=''
25+
diff=$(git diff bundle/manifests/sonataflow-operator.clusterserviceversion.yaml)
26+
echo $diff
2327
else
2428
[[ -z "$changed_files" ]] || (printf "Generation has not been done on this PR. See modified files: \n$changed_files\n Did you run 'make generate-all' before sending the PR" && exit 1)
2529
fi

0 commit comments

Comments
 (0)