feat(CI): check if pending sql has procedure or function (#3596)
This commit is contained in:
parent
2e809055a0
commit
f3b506a1ca
1 changed files with 17 additions and 0 deletions
17
.github/workflows/check_pending_sql.yml
vendored
Normal file
17
.github/workflows/check_pending_sql.yml
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
name: Check pending sql for Procedure/Function
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
check-pending-sql:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Check for Procedure/Function
|
||||
run: |
|
||||
if grep -R -q -i -E "(PROCEDURE|FUNCTION)" data/sql/updates/pending*
|
||||
then
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue