2 # SPDX-License-Identifier: EPL-1.0
3 ##############################################################################
4 # Copyright (c) 2018 The Linux Foundation and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
11 echo '--> git-validate-info-yaml.sh'
12 # This script will make sure that the INFO.yaml file changes are kept
13 # isolated from other file changes.
14 # INFO.yaml file creation or moddifications should be kept in its own separate
17 # This script will fail if other file changes are also included in the same
20 # Ensure we fail the job if any steps fail.
24 MODIFIED_FILES=$(git diff --name-only HEAD~1)
26 if [ "$MODIFIED_FILES" != "INFO.yaml" ]; then
27 echo 'ERROR: Do not combine INFO.yaml file changes with other files. Please isolate INFO.yaml changes.'