Skip to content

feat: add action to check bucket name #1

feat: add action to check bucket name

feat: add action to check bucket name #1

name: Check if bucket name
on:
workflow_dispatch:
pull_request:
paths:
- '**/*.sql'
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Find SQL files
run: |
if grep -r --include=*.sql '-staging' .; then
echo "Found '-staging' in SQL files."
exit 1
else
echo "No occurrences of '-staging' found in SQL files."
fi