feat: add action to check bucket name #8
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 bucket name | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- '**/*.sql' | |
jobs: | |
check_bucket_name: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Get changed files | |
id: get_files | |
uses: dorny/paths-filter@v2 | |
with: | |
filters: | | |
allChanges: | |
- added|deleted|modified: '**' | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Run Python script | |
run: | | |
for file in ${{ steps.get_files.outputs.matched_files }}; do | |
echo $file | |
done | |
# - name: Check SQL files | |
# run: | | |
# python .github/workflows/scripts/check_sql_files.py |