Compare commits
2 Commits
build/stg
...
cc81c8b91e
| Author | SHA1 | Date | |
|---|---|---|---|
| cc81c8b91e | |||
| 5515401614 |
@@ -21,7 +21,7 @@ async function triggerWorkflow(workflow: string, inputs: Record<string, string>)
|
|||||||
const res = await fetch(`${BASE_URL}/actions/workflows/${workflow}/dispatches`, {
|
const res = await fetch(`${BASE_URL}/actions/workflows/${workflow}/dispatches`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: ghHeaders,
|
headers: ghHeaders,
|
||||||
body: JSON.stringify({ ref: 'main', inputs }),
|
body: JSON.stringify({ ref: 'stg', inputs }),
|
||||||
})
|
})
|
||||||
if (!res.ok) throw new Error(`GitHub API error ${res.status}: ${await res.text()}`)
|
if (!res.ok) throw new Error(`GitHub API error ${res.status}: ${await res.text()}`)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user