mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
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
This commit is contained in:
1
.github/workflows/linter.yml
vendored
1
.github/workflows/linter.yml
vendored
@@ -29,6 +29,7 @@ jobs:
|
|||||||
VALIDATE_JSON: true
|
VALIDATE_JSON: true
|
||||||
VALIDATE_MARKDOWN: true
|
VALIDATE_MARKDOWN: true
|
||||||
DEFAULT_BRANCH: ${{ github.base_ref }}
|
DEFAULT_BRANCH: ${{ github.base_ref }}
|
||||||
|
FILTER_REGEX_EXCLUDE: .*images/*/.*-Readme.md
|
||||||
|
|
||||||
- name: Checking shebang lines in MacOS and Ubuntu releases.
|
- name: Checking shebang lines in MacOS and Ubuntu releases.
|
||||||
run: ./images.CI/shebang-linter.ps1
|
run: ./images.CI/shebang-linter.ps1
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ $runtimesList = @(
|
|||||||
(Get-KotlinVersion),
|
(Get-KotlinVersion),
|
||||||
(Get-ClangVersions),
|
(Get-ClangVersions),
|
||||||
(Get-ClangFormatVersions)
|
(Get-ClangFormatVersions)
|
||||||
)
|
)
|
||||||
|
|
||||||
$markdown += New-MDList -Style Unordered -Lines ($runtimesList | Sort-Object)
|
$markdown += New-MDList -Style Unordered -Lines ($runtimesList | Sort-Object)
|
||||||
|
|
||||||
|
|||||||
@@ -335,7 +335,7 @@
|
|||||||
{
|
{
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"source": "{{user `image_folder`}}/Ubuntu-Readme.md",
|
"source": "{{user `image_folder`}}/Ubuntu-Readme.md",
|
||||||
"destination": "{{template_dir}}/Ubuntu1804-README.md",
|
"destination": "{{template_dir}}/Ubuntu1804-Readme.md",
|
||||||
"direction": "download"
|
"direction": "download"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -336,7 +336,7 @@
|
|||||||
{
|
{
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"source": "{{user `image_folder`}}/Ubuntu-Readme.md",
|
"source": "{{user `image_folder`}}/Ubuntu-Readme.md",
|
||||||
"destination": "{{template_dir}}/Ubuntu2004-README.md",
|
"destination": "{{template_dir}}/Ubuntu2004-Readme.md",
|
||||||
"direction": "download"
|
"direction": "download"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user