From 5132610767f0b516b33c0e1ba472946f23e5e4d8 Mon Sep 17 00:00:00 2001 From: mnokka-unikie Date: Wed, 13 Nov 2024 13:07:00 +0200 Subject: [PATCH] Fix utils.groovy load checking Signed-off-by: mnokka-unikie --- .github/workflows/format-checks.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/format-checks.yml b/.github/workflows/format-checks.yml index cec24e4..56cc83d 100644 --- a/.github/workflows/format-checks.yml +++ b/.github/workflows/format-checks.yml @@ -32,7 +32,7 @@ jobs: # Custom step to check for missing 'import "utils.groovy"' in specified files - name: Check for missing imports run: | - missing_import_files=$(grep -L 'import "utils.groovy"' \ + missing_import_files=$(grep -L 'load "utils.groovy"' \ fmo-os-main-pipeline.groovy \ ghaf-main-pipeline.groovy \ ghaf-nightly-pipeline.groovy \ @@ -41,9 +41,9 @@ jobs: ghaf-release-pipeline.groovy) if [ -n "$missing_import_files" ]; then - echo "Error: The following files are missing 'import \"utils.groovy\"':" + echo "Error: The following files are missing 'load \"utils.groovy\"':" echo "$missing_import_files" exit 1 else - echo "All specified files contain 'import \"utils.groovy\"'." + echo "All specified files contain 'load \"utils.groovy\"'." fi \ No newline at end of file