Skip to content

Commit

Permalink
Update env setting prerequisites for lic header check
Browse files Browse the repository at this point in the history
  • Loading branch information
calebofearth committed Feb 9, 2024
1 parent 438c773 commit e5888b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/scripts/licenseHeaderCheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pre-run-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -75,4 +75,5 @@ jobs:
uses: actions/checkout@v4
- name: Run Script
run: |
export CALIPTRA_ROOT=$GITHUB_WORKSPACE
$GITHUB_WORKSPACE/.github/scripts/licenseHeaderCheck.sh

0 comments on commit e5888b6

Please sign in to comment.