Skip to main content

action_runs

Creates, updates, deletes, gets or lists an action_runs resource.

Overview​

Nameaction_runs
TypeResource
Idsupabase.branches.action_runs

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring
branch_idstring
check_run_idnumber
created_atstring
git_config
run_stepsarray
updated_atstring
workdirstring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectrun_id, refReturns the current status of the specified action run.
listselectrefoffset, limitReturns a paginated list of action runs of the specified project.
update_statusexecrun_id, refUpdates the status of an ongoing action run.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
refstringSupabase project reference (the Project ID shown in the dashboard under Settings -> General; 20 lowercase letters). Resolved from the SUPABASE_PROJECT_ID environment variable when it is set (x-stackQL-envVar); otherwise it must be supplied on every project-scoped query as WHERE ref = '<ref>'. A WHERE value always takes precedence over the environment. (x-stackQL-envVar: SUPABASE_PROJECT_ID)
run_idstringAction Run ID
limitnumber
offsetnumber

SELECT examples​

Returns the current status of the specified action run.

SELECT
id,
branch_id,
check_run_id,
created_at,
git_config,
run_steps,
updated_at,
workdir
FROM supabase.branches.action_runs
WHERE run_id = '{{ run_id }}' -- required
AND ref = '{{ ref }}' -- required unless SUPABASE_PROJECT_ID is set
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Updates the status of an ongoing action run.

EXEC supabase.branches.action_runs.update_status
@run_id='{{ run_id }}' --required,
@ref='{{ ref }}' --required unless SUPABASE_PROJECT_ID is set
@@json=
'{
"clone": "{{ clone }}",
"pull": "{{ pull }}",
"health": "{{ health }}",
"configure": "{{ configure }}",
"migrate": "{{ migrate }}",
"seed": "{{ seed }}",
"deploy": "{{ deploy }}"
}'
;