[GHA] Check Regex Format Referrers Creation

Ref: #419
This commit is contained in:
Mitchell Krog 2021-07-05 12:19:56 +02:00
parent 2e0abfe1e0
commit 0ae6b8594f
No known key found for this signature in database
GPG key ID: E02E9D10427B6A43
2 changed files with 3 additions and 2 deletions

View file

@ -55,6 +55,7 @@ jobs:
php ./dev-tools/generate-google-exclude.php
./dev-tools/generate-files.sh
./dev-tools/install-nginx-1.sh
cat ./dev-tools/referrers-regex-format.txt
- name: Test Blocker - Stage 1
shell: bash

View file

@ -69,7 +69,7 @@ class Generator
*/
protected function writeToFile($filename, $data)
{
$file = "./.dev-tools/referrers-regex-format.txt";
$file = "./dev-tools/referrers-regex-format.txt";
$handle = fopen($file, 'w') or die('Cannot open file: '.$file);
fwrite($handle, $data);
}
@ -80,7 +80,7 @@ class Generator
*/
public function createNginx(array $lines)
{
$file = "./.dev-tools/referrers-regex-format.txt";
$file = "./dev-tools/referrers-regex-format.txt";
$data = "";
{
foreach ($lines as $line) {