Skip to content

fix: lint migration github action failed for pull request from contributor #22

fix: lint migration github action failed for pull request from contributor

fix: lint migration github action failed for pull request from contributor #22

Workflow file for this run

name: Lint Migrations
on:
pull_request:
paths:
- 'packages/db/migrations/**'
jobs:
lint_migrations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Fetch main branch
run: git fetch origin main:main
- name: Find modified migrations
run: |
modified_migrations=$(git diff --diff-filter=d --name-only main 'packages/db/migrations/*.do.*.sql')
echo "$modified_migrations"
echo "{FILE_NAMES}={$modified_migrations}" >> $GITHUB_OUTPUT
- uses: sbdchd/squawk-action@v1
with:
pattern: "$FILE_NAMES"