Skip to content

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

fix: Change the `authorize-vercel-builds` to be triggered by another action (#41789)

Ivan Vasilov6f24342b55b0
diff --git a/.github/workflows/authorize-vercel-deploys.yml b/.github/workflows/authorize-vercel-deploys.yml
index 4e14c277382..32979851091 100644
--- a/.github/workflows/authorize-vercel-deploys.yml
+++ b/.github/workflows/authorize-vercel-deploys.yml
@@ -1,13 +1,14 @@
name: Authorize Vercel Deploys
on:
- pull_request:
- branches:
- - 'master'
+ # only run this workflow when the validate-pr workflow completes (successfully or not)
+ workflow_run:
+ workflows: ['validate-pr']
+ types: [completed]
-# Cancel old builds on new commit for same workflow + branch/PR
+# Cancel old builds on new commit for same workflow + branch/PR.
concurrency:
- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch || github.ref }}
cancel-in-progress: true
permissions:
@@ -18,9 +19,11 @@ jobs:
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
+ # Checkout the master branch from the supabase repo and run that script to authorize Vercel deploys
- name: Check out repo
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
with:
+ ref: master
# fetch only the root files and scripts folder
sparse-checkout: |
scripts