buildah-build/git-hooks/pre-commit
divyansh42 f6079a53f7 Add IO generator and CI checks
Signed-off-by: divyansh42 <diagrawa@redhat.com>
2021-02-08 12:59:27 +05:30

10 lines
No EOL
308 B
Bash

#!/usr/bin/env bash
### Copy this into .git/hooks and overwrite the empty one.
### This will ensure the bundle and ins-outs verification checks won't fail for you.
echo "----- Pre-commit -----"
set -ex
npx action-io-generator -o src/generated/inputs-outputs.ts
npm run bundle
git add -v dist/ src/generated