Skip to content

Commit 6cb5f2f

Browse files
committed
[fix] config key
1 parent 86ee77b commit 6cb5f2f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Jobs/DispatchGithubWorkflowJob.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,33 @@ class DispatchGithubWorkflowJob implements ShouldQueue
1616
public function handle(): void
1717
{
1818

19-
if (! config('github-workflow-dispatch.dispatch_workflows')) {
19+
if (! config('statamic-github-workflow-dispatch.dispatch_workflows')) {
2020
return;
2121
}
2222

23-
if (is_null(config('github-workflow-dispatch.token'))) {
23+
if (is_null(config('statamic-github-workflow-dispatch.token'))) {
2424
return;
2525
}
2626

27-
if (is_null(config('github-workflow-dispatch.owner'))) {
27+
if (is_null(config('statamic-github-workflow-dispatch.owner'))) {
2828
return;
2929
}
3030

31-
if (is_null(config('github-workflow-dispatch.repo'))) {
31+
if (is_null(config('statamic-github-workflow-dispatch.repo'))) {
3232
return;
3333
}
3434

35-
if (is_null(config('github-workflow-dispatch.workflow_id'))) {
35+
if (is_null(config('statamic-github-workflow-dispatch.workflow_id'))) {
3636
return;
3737
}
3838

39-
if (is_null(config('github-workflow-dispatch.ref'))) {
39+
if (is_null(config('statamic-github-workflow-dispatch.ref'))) {
4040
return;
4141
}
4242

43-
Http::withToken(config('github-workflow-dispatch.token'))
44-
->post('https://api.github.com/repos/'. config('github-workflow-dispatch.owner') . '/'. config('github-workflow-dispatch.repo') . '/actions/workflows/'. config('github-workflow-dispatch.workflow_id') . '/dispatches', [
45-
'ref' => config('github-workflow-dispatch.ref'),
43+
Http::withToken(config('statamic-github-workflow-dispatch.token'))
44+
->post('https://api.github.com/repos/'. config('statamic-github-workflow-dispatch.owner') . '/'. config('statamic-github-workflow-dispatch.repo') . '/actions/workflows/'. config('statamic-github-workflow-dispatch.workflow_id') . '/dispatches', [
45+
'ref' => config('statamic-github-workflow-dispatch.ref'),
4646
]);
4747
}
4848
}

0 commit comments

Comments
 (0)