Skip to content

Commit

Permalink
Fix utils.groovy load checking
Browse files Browse the repository at this point in the history
Signed-off-by: mnokka-unikie <[email protected]>
  • Loading branch information
mnokka-unikie committed Nov 13, 2024
1 parent 935a5d7 commit 5132610
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/format-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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

0 comments on commit 5132610

Please sign in to comment.