Skip to content

Commit

Permalink
[KOGITO-9428]Update Operator SDK
Browse files Browse the repository at this point in the history
Signed-off-by: desmax74 <[email protected]>
  • Loading branch information
desmax74 committed Jun 22, 2023
1 parent 8a57884 commit b7055c6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions hack/checkCreatedAtAnnotation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@
# limitations under the License.

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

if [[ "${changed_files}" = "M bundle/manifests/sonataflow-operator.clusterserviceversion.yaml" ]] ; then
printf "clusterserviceversion.yaml with createdAt /n"
if [[ "check_file" == "0" ]] ; then
printf "Cheking if the createdAt annotation has changed"
##@TODO
changed_files=''
diff=$(git diff bundle/manifests/sonataflow-operator.clusterserviceversion.yaml)
echo $diff
else
[[ -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)
fi

0 comments on commit b7055c6

Please sign in to comment.