feat: add action to check bucket name #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |