action_runs
Creates, updates, deletes, gets or lists an action_runs resource.
Overview​
| Name | action_runs |
| Type | Resource |
| Id | supabase.branches.action_runs |
Fields​
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | |
branch_id | string | |
check_run_id | number | |
created_at | string | |
git_config | | |
run_steps | array | |
updated_at | string | |
workdir | string |
| Name | Datatype | Description |
|---|---|---|
id | string | |
branch_id | string | |
check_run_id | number | |
created_at | string | |
git_config | | |
run_steps | array | |
updated_at | string | |
workdir | string |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | run_id, ref | Returns the current status of the specified action run. | |
list | select | ref | offset, limit | Returns a paginated list of action runs of the specified project. |
update_status | exec | run_id, ref | Updates 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.
| Name | Datatype | Description |
|---|---|---|
ref | string | Supabase 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_id | string | Action Run ID |
limit | number | |
offset | number |
SELECT examples​
- get
- list
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
;
Returns a paginated list of action runs of the specified project.
SELECT
id,
branch_id,
check_run_id,
created_at,
git_config,
run_steps,
updated_at,
workdir
FROM supabase.branches.action_runs
WHERE ref = '{{ ref }}' -- required unless SUPABASE_PROJECT_ID is set
AND offset = '{{ offset }}'
AND limit = '{{ limit }}'
;
Lifecycle Methods​
EXEC variables use wire (API) names.
- update_status
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 }}"
}'
;