File tree 2 files changed +3
-3
lines changed
lambdas/webhook/src/webhook
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -131,8 +131,8 @@ function isRunnerNotAllowed(job: WorkflowJob): boolean {
131
131
132
132
console . debug (
133
133
`Received workflow job event with labels: '${ JSON . stringify ( job . workflow_job . labels ) } '. The event does ${
134
- runnerMatch ? '' : 'NOT'
135
- } match the configured labels: '${ JSON . stringify ( runnerLabels ) } '`,
134
+ runnerMatch ? '' : 'NOT '
135
+ } match the configured labels: '${ Array . from ( runnerLabels ) . join ( ',' ) } '`,
136
136
) ;
137
137
return ! runnerMatch ;
138
138
}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ resource "aws_lambda_function" "webhook" {
15
15
ENVIRONMENT = var.environment
16
16
SQS_URL_WEBHOOK = var.sqs_build_queue.id
17
17
REPOSITORY_WHITE_LIST = jsonencode (var. repository_white_list )
18
- RUNNER_LABELS = jsonencode (var. runner_extra_labels )
18
+ RUNNER_LABELS = jsonencode (split ( " , " , var. runner_extra_labels ) )
19
19
}
20
20
}
21
21
You can’t perform that action at this time.
0 commit comments