Watch
1
0
Fork
You've already forked push-to-registry
0
mirror of https://github.com/redhat-actions/push-to-registry.git synced 2026-11-16 19:39:34 +00:00
push-to-registry/git-hooks/pre-commit
Tim Etchells e8a67de103 Print image digest after every push
Signed-off-by: Tim Etchells <[email protected]>
2021-02-20 14:07:32 -05:00

15 lines
346 B
Shell
Executable file

#!/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 lint
npm run bundle
git add -v dist/ src/generated
set +x
echo "Success"