buildah-build/git-hooks/pre-commit
Divyanshu Agrawal 20a8e62ce0
Add io generator and CI checks (#25)
Signed-off-by: divyansh42 <diagrawa@redhat.com>
2021-02-08 11:24:18 -05:00

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