Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: Set up SDK compliance public API check
description: Checks out the PR branch and base branch, then installs script dependencies. Expects the supabase/sdk checkout at _sdk-spec (the reusable workflows set it up).

inputs:
sdk-ref:
description: Transitional, only set by pre-v1.4.0 reusable workflows that reference this action remotely. When non-empty, the action checks out the capability spec itself at this ref. Remove once every caller references the action locally.
default: ""

runs:
using: composite
steps:
Expand All @@ -20,17 +15,6 @@ runs:
ref: ${{ github.event.pull_request.base.sha }}
path: _sdk-base

# Transitional compatibility for pre-v1.4.0 reusable workflows: they
# reference this action remotely and always pass a non-empty sdk-ref.
# Current workflows check out _sdk-spec themselves and leave it empty.
- name: Checkout capability spec
if: ${{ inputs.sdk-ref != '' }}
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: supabase/sdk
ref: ${{ inputs.sdk-ref }}
path: _sdk-spec

- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: "22"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,9 @@ inputs:
compliance-file:
description: Path to sdk-compliance.yaml in the calling repo
default: sdk-compliance.yaml
sdk-ref:
description: Transitional, only set by pre-v1.4.0 reusable workflows that reference this action remotely. When non-empty, the action performs its own checkouts at this ref. Remove once every caller references the action locally.
default: ""

runs:
using: composite
steps:
# Transitional compatibility for pre-v1.4.0 reusable workflows: they
# reference this action remotely (so nothing is checked out yet) and
# always pass a non-empty sdk-ref. Current workflows perform both
# checkouts themselves and leave sdk-ref empty.
- name: Checkout SDK repo
if: ${{ inputs.sdk-ref != '' }}
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Checkout capability spec
if: ${{ inputs.sdk-ref != '' }}
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: supabase/sdk
ref: ${{ inputs.sdk-ref }}
path: _sdk-spec

- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: "22"
Expand Down