github.com/pvitto98/fabric@v2.1.1+incompatible/ci/scripts/evaluate_commits.sh (about) 1 #!/bin/bash 2 # Copyright IBM Corp. All Rights Reserved. 3 # 4 # SPDX-License-Identifier: Apache-2.0 5 set -euo pipefail 6 7 if [[ $(git diff-tree --no-commit-id --name-only 'HEAD^..HEAD') == "docs" ]]; then 8 echo "##vso[task.setvariable variable=buildDoc;isOutput=true]true" 9 else 10 echo "##vso[task.setvariable variable=buildDoc;isOutput=true]true" 11 echo "##vso[task.setvariable variable=runTests;isOutput=true]true" 12 fi