| File: | generate-apply.pl |
| Coverage: | 100.0% |
| line | stmt | bran | cond | sub | time | code |
|---|---|---|---|---|---|---|
| 1 | #!/usr/bin/env perl | |||||
| 2 | 1 1 1 | 1466 6985 550 | use JSON::PP; | |||
| 3 | 1 | 39495 | my @expect_files = split /\n/, $ENV{expect_files}; | |||
| 4 | 1 | 1 | my @excludes_files = split /\n/, $ENV{excludes_files}; | |||
| 5 | 1 | 3 | my $new_expect_file = $ENV{new_expect_file}; | |||
| 6 | 1 | 2 | my $excludes_file = $ENV{excludes_file}; | |||
| 7 | 1 | 1 | my $spelling_config = $ENV{spelling_config}; | |||
| 8 | 1 | 1 | my $job = $ENV{THIS_GITHUB_JOB_ID}; | |||
| 9 | 1 | 0 | $config{"excludes_file"} = $excludes_file; | |||
| 10 | 1 | 2 | $config{"new_expect_file"} = $new_expect_file; | |||
| 11 | 1 | 1 | $config{"spelling_config"} = $spelling_config; | |||
| 12 | 1 | 1 | $config{"expect_files"} = \@expect_files; | |||
| 13 | 1 | 1 | $config{"excludes_files"} = \@excludes_files; | |||
| 14 | 1 | 1 | $config{"job"} = $job; | |||
| 15 | 1 | 1 | $config{"only_check_changed_files"} = $ENV{INPUT_ONLY_CHECK_CHANGED_FILES}; | |||
| 16 | 1 | 1 | print encode_json \%config; |