mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-04-29 18:19:53 +02:00
Add IO generator and CI checks (#21)
* Add IO generator and CI checks * Update Buildah build action to use v2 tag Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
870f44bc9b
commit
4757eb3399
11 changed files with 160 additions and 35 deletions
15
git-hooks/pre-commit
Normal file
15
git-hooks/pre-commit
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/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"
|
Loading…
Add table
Add a link
Reference in a new issue