From 986530d6bb268502c6c29cf7d8c3b1b0b3095bbe Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com> Date: Wed, 22 Dec 2021 17:34:53 +0300 Subject: [PATCH] Skip linter-check for readmes (#4794) * Exclude readmes from the linter * Add env variable with exclusion to the linter yml * Rename Ubuntu readmes to correspond with the other images * Remove trailing space in ubuntu software generator * Rename Ubuntu1804-README.md to Ubuntu1804-Readme.md * Rename Ubuntu2004-README.md to Ubuntu2004-Readme.md --- .github/workflows/linter.yml | 1 + images/linux/{Ubuntu1804-README.md => Ubuntu1804-Readme.md} | 0 images/linux/{Ubuntu2004-README.md => Ubuntu2004-Readme.md} | 0 .../linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 | 2 +- images/linux/ubuntu1804.json | 2 +- images/linux/ubuntu2004.json | 2 +- 6 files changed, 4 insertions(+), 3 deletions(-) rename images/linux/{Ubuntu1804-README.md => Ubuntu1804-Readme.md} (100%) rename images/linux/{Ubuntu2004-README.md => Ubuntu2004-Readme.md} (100%) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index f5c8c637..b2f41f94 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -29,6 +29,7 @@ jobs: VALIDATE_JSON: true VALIDATE_MARKDOWN: true DEFAULT_BRANCH: ${{ github.base_ref }} + FILTER_REGEX_EXCLUDE: .*images/*/.*-Readme.md - name: Checking shebang lines in MacOS and Ubuntu releases. run: ./images.CI/shebang-linter.ps1 diff --git a/images/linux/Ubuntu1804-README.md b/images/linux/Ubuntu1804-Readme.md similarity index 100% rename from images/linux/Ubuntu1804-README.md rename to images/linux/Ubuntu1804-Readme.md diff --git a/images/linux/Ubuntu2004-README.md b/images/linux/Ubuntu2004-Readme.md similarity index 100% rename from images/linux/Ubuntu2004-README.md rename to images/linux/Ubuntu2004-Readme.md diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 index 405604b3..b15e53b0 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 @@ -53,7 +53,7 @@ $runtimesList = @( (Get-KotlinVersion), (Get-ClangVersions), (Get-ClangFormatVersions) - ) + ) $markdown += New-MDList -Style Unordered -Lines ($runtimesList | Sort-Object) diff --git a/images/linux/ubuntu1804.json b/images/linux/ubuntu1804.json index 38a0c266..4fb6da11 100644 --- a/images/linux/ubuntu1804.json +++ b/images/linux/ubuntu1804.json @@ -335,7 +335,7 @@ { "type": "file", "source": "{{user `image_folder`}}/Ubuntu-Readme.md", - "destination": "{{template_dir}}/Ubuntu1804-README.md", + "destination": "{{template_dir}}/Ubuntu1804-Readme.md", "direction": "download" }, { diff --git a/images/linux/ubuntu2004.json b/images/linux/ubuntu2004.json index eb9e9e61..d88e3779 100644 --- a/images/linux/ubuntu2004.json +++ b/images/linux/ubuntu2004.json @@ -336,7 +336,7 @@ { "type": "file", "source": "{{user `image_folder`}}/Ubuntu-Readme.md", - "destination": "{{template_dir}}/Ubuntu2004-README.md", + "destination": "{{template_dir}}/Ubuntu2004-Readme.md", "direction": "download" }, {