refactor(ci): use reusable workflows from supabase/actions#2041
Merged
Conversation
Refactor CI workflows to use shared reusable workflows from the supabase/actions repository, standardizing patterns across Supabase repos. Changes: 1. block-merge.yml - Now uses supabase/actions/.github/workflows/block-merge.yml - Same functionality, simplified implementation - Prevents merging of draft PRs, PRs with do-not-merge label, or WIP in title 2. label-issues.yml - Now uses supabase/actions/.github/workflows/label-issues.yml - Extracts scope from conventional commit PR titles - Labels: auth-js, functions-js, postgrest-js, storage-js, realtime-js, supabase-js - Simplified from 107 lines to 26 lines Kept as-is: - stale.yml - Has sophisticated multi-tier stale handling specific to this repo - slack-notify.yml - Already a reusable workflow, uses repo-specific secrets - Other workflows (ci.yml, docs.yml, publish.yml, etc.) - Repo-specific logic Benefits: - Easier maintenance (single source of truth) - Consistent behavior across Supabase repositories - Automatic updates when supabase/actions workflows improve - Reduced duplication Related: - Reusable workflows: supabase/actions#1 - supabase-swift adoption: supabase/supabase-swift#887 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
mandarini
reviewed
Jan 21, 2026
mandarini
left a comment
Contributor
There was a problem hiding this comment.
That's great!!!!! :D Once this PR supabase/actions#1 is merged, let's remove the @<branch> and merge!!!!
Merged
4 tasks
staaldraad
previously approved these changes
Jan 21, 2026
Updates supabase/actions workflow references from feat/reusable-workflows branch to commit hash 659b3cd after PR merge. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
mandarini
approved these changes
Jan 22, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR refactors CI workflows to use shared reusable workflows from the
supabase/actionsrepository, standardizing patterns across all Supabase repositories.Changes
Workflows Refactored to Use Reusable Actions
1. block-merge.yml (Simplified from 35 to 12 lines)
Before: Inline implementation with GitHub Script
After: Uses
supabase/actions/.github/workflows/block-merge.yml@feat/reusable-workflowsFunctionality preserved:
do-not-mergelabelwipordo not mergein title2. label-issues.yml (Simplified from 107 to 26 lines)
Before: Complex inline script handling transfers, templates, and PR titles
After: Uses
supabase/actions/.github/workflows/label-issues.yml@feat/reusable-workflowsFunctionality preserved:
fix(auth):→auth-jslabel)auth-js,functions-js,postgrest-js,storage-js,realtime-js,supabase-jsNote: Transfer detection and detailed template parsing are simplified in the reusable workflow. If these features are critical, we can enhance the reusable workflow.
Workflows Kept As-Is
stale.yml
Kept unchanged - has sophisticated multi-tier stale handling specific to this repository:
slack-notify.yml
Kept unchanged - already a reusable workflow hosted in this repo:
SLACK_CLIENT_LIBS_WEBHOOK)supabase/actionsversion which is for cross-repo useOther Workflows
No changes to:
ci.yml,ci-core.yml,ci-supabase-js.yml- Repo-specific CI logicdocs.yml- Monorepo documentation generationpublish.yml- Package publishing with npm provenancepreview-release.yml- Preview releases for PRsfix-lockfile.yml- Dependabot lockfile regenerationBenefits
Maintainability
Consistency
supabase-swift,supabase-js, and future Supabase reposFuture-Proof
@v1or@commit-shaTesting
To verify functionality:
Migration Notes
For Maintainers
After merge, workflows will use the branch
feat/reusable-workflowsuntil supabase/actions PR #1 is merged to main. Once merged, update references to use@mainor a specific version tag.Rollback Plan
If issues arise, can easily revert to previous inline implementations by reverting this PR.
Related PRs
Breaking Changes
None. External behavior is identical.
Future Work
Potential future consolidations:
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com