diff --git a/.github/scripts/licenseHeaderCheck.sh b/.github/scripts/licenseHeaderCheck.sh index 60fcb32d2..aa5db3148 100755 --- a/.github/scripts/licenseHeaderCheck.sh +++ b/.github/scripts/licenseHeaderCheck.sh @@ -67,12 +67,8 @@ while [ ! -z "$1" ]; do shift done -if [[ $(command -v pb) = "" ]]; then - echo "Enter Caliptra workspace (to make Playbook available) and try again" - exit 1 -fi if [[ -z ${CALIPTRA_ROOT:+"empty"} ]]; then - echo "Must run script from within Caliptra Playbook context" + echo "Must set CALIPTRA_ROOT prior to running script" exit 1 fi diff --git a/.github/workflows/pre-run-check.yml b/.github/workflows/pre-run-check.yml index db55af745..c12b7efdb 100644 --- a/.github/workflows/pre-run-check.yml +++ b/.github/workflows/pre-run-check.yml @@ -17,7 +17,7 @@ on: jobs: # Build the comparison hash file hash_check: - name: Test + name: Hash Check runs-on: ubuntu-22.04 steps: - name: Checkout RTL repo @@ -75,4 +75,5 @@ jobs: uses: actions/checkout@v4 - name: Run Script run: | + export CALIPTRA_ROOT=$GITHUB_WORKSPACE $GITHUB_WORKSPACE/.github/scripts/licenseHeaderCheck.sh