From f3b506a1cab4e4964c74c884803f3ef0799fa61b Mon Sep 17 00:00:00 2001 From: Patrick Lewis Date: Thu, 5 Nov 2020 00:29:14 -0800 Subject: [PATCH] feat(CI): check if pending sql has procedure or function (#3596) --- .github/workflows/check_pending_sql.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/check_pending_sql.yml diff --git a/.github/workflows/check_pending_sql.yml b/.github/workflows/check_pending_sql.yml new file mode 100644 index 000000000..9704fe02c --- /dev/null +++ b/.github/workflows/check_pending_sql.yml @@ -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