Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

ci(studio): fetch enough history for paths-filter on push events (#49766)

Alaister Young7a399d78794a
diff --git a/.github/workflows/studio-docker-build.yml b/.github/workflows/studio-docker-build.yml
index dcd33805726..312745399bb 100644
--- a/.github/workflows/studio-docker-build.yml
+++ b/.github/workflows/studio-docker-build.yml
@@ -21,6 +21,10 @@ jobs:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
+ # On push events paths-filter diffs against github.event.before with
+ # local git; without enough history it falls back to a git fetch that
+ # fails unauthenticated (persist-credentials is false).
+ fetch-depth: 50
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
diff --git a/.github/workflows/studio-e2e-test.yml b/.github/workflows/studio-e2e-test.yml
index 67da2f67312..9b7ba85b549 100644
--- a/.github/workflows/studio-e2e-test.yml
+++ b/.github/workflows/studio-e2e-test.yml
@@ -38,6 +38,10 @@ jobs:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
+ # On push events paths-filter diffs against github.event.before with
+ # local git; without enough history it falls back to a git fetch that
+ # fails unauthenticated (persist-credentials is false).
+ fetch-depth: 50
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
diff --git a/.github/workflows/studio-unit-tests.yml b/.github/workflows/studio-unit-tests.yml
index 65e65dabcf4..597cf609386 100644
--- a/.github/workflows/studio-unit-tests.yml
+++ b/.github/workflows/studio-unit-tests.yml
@@ -36,6 +36,10 @@ jobs:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
+ # On push events paths-filter diffs against github.event.before with
+ # local git; without enough history it falls back to a git fetch that
+ # fails unauthenticated (persist-credentials is false).
+ fetch-depth: 50
sparse-checkout: |
apps/studio
packages