diff --git a/.github/workflows/verify-bluehawk.yml b/.github/workflows/verify-bluehawk.yml new file mode 100644 index 00000000..b0201043 --- /dev/null +++ b/.github/workflows/verify-bluehawk.yml @@ -0,0 +1,23 @@ +name: Verify Bluehawk Was Run + +on: pull_request + +jobs: + check-bluehawk: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Ensure Bluehawk Script Was Run + working-directory: sync-todo/v2 + run: | + dir1=client/ + dir2=generated/ + if [ `diff $dir1 $dir2 | grep -c 'Only'` == 0 ] + then + echo "Passed" + else + echo "Error: The following files exist in the /sync-todo/v2/client directory that aren't in the /sync-todo/v2/generated directory." + echo "Please run the /sync-todo/v2/bluehawk.sh script to generate updated output files." + diff $dir1 $dir2 | grep 'Only' + exit 1 + fi \ No newline at end of file