From f0a955d8aa10764a7cb78c28757d453a02756f6a Mon Sep 17 00:00:00 2001 From: Tom Wieczorek Date: Thu, 1 Feb 2024 11:34:29 +0100 Subject: [PATCH] Pin markdownlint-cli version in GitHub Actions The latest release introduced two new lints that appear to be broken. Ignore these lints and pin the CLI to the current version to prevent CI bugs from creeping in for the future. Signed-off-by: Tom Wieczorek (cherry picked from commit 5548f4b2226046410ae5b2dfc2fbdad998ee45f4) (cherry picked from commit 48180d1471543b2fc2eeeb3b29eae6ceea2ac8ac) --- .github/workflows/docs.yml | 7 ++++++- ...{markdownlint-config.json => markdownlint-config.jsonc} | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) rename .github/workflows/{markdownlint-config.json => markdownlint-config.jsonc} (60%) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5a3922769ab3..94d7cb2c80b7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -7,12 +7,16 @@ on: - release-* paths: - '**.md' + - .github/workflows/docs.yml + - .github/workflows/markdownlint-config.jsonc pull_request: branches: - main - release-* paths: - '**.md' + - .github/workflows/docs.yml + - .github/workflows/markdownlint-config.jsonc jobs: lint: name: Lint markdown @@ -21,5 +25,6 @@ jobs: - uses: actions/checkout@v3 - uses: articulate/actions-markdownlint@v1 with: - config: .github/workflows/markdownlint-config.json + config: .github/workflows/markdownlint-config.jsonc ignore: autopilot + version: 0.39.0 diff --git a/.github/workflows/markdownlint-config.json b/.github/workflows/markdownlint-config.jsonc similarity index 60% rename from .github/workflows/markdownlint-config.json rename to .github/workflows/markdownlint-config.jsonc index c83d4850895b..a43cd6fc6ef3 100644 --- a/.github/workflows/markdownlint-config.json +++ b/.github/workflows/markdownlint-config.jsonc @@ -4,5 +4,7 @@ "no-bare-urls": false, "first-line-h1": false, "single-trailing-newline": false, - "ol-prefix": "one_or_ordered" + "ol-prefix": "one_or_ordered", + "MD055": false, // broken + "MD056": false // broken }