Browse Source

chore(migrations): Tidy up generate migration step (#77244)

<!-- Describe your PR here. -->
Dan Fuller 6 months ago
parent
commit
33ca5eb423
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .github/workflows/migrations.yml

+ 1 - 1
.github/workflows/migrations.yml

@@ -68,7 +68,7 @@ jobs:
         id: file
         run: |
           echo 'added<<EOF' >> "$GITHUB_OUTPUT"
-          git diff --diff-filter=A --name-only origin/master HEAD -- 'src/sentry/*/migrations/*' 'src/sentry/migrations/*' | grep -v "__init__.py" >> "$GITHUB_OUTPUT"
+          git diff --diff-filter=A --name-only origin/master HEAD -- 'src/sentry/*/migrations/*' 'src/sentry/migrations/*' ':!*/__init__.py' >> "$GITHUB_OUTPUT"
           echo 'EOF' >> "$GITHUB_OUTPUT"
 
       - name: Generate SQL for migration