From e08ead2fbec6b8261f6b3b875f388368306ff8fc Mon Sep 17 00:00:00 2001
From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com>
Date: Thu, 21 Sep 2023 17:36:12 +0200
Subject: [PATCH] ci: run markdown-linter on ci-release (backport #2556)
(#2561)
This is an automatic backport of pull request #2556 done by
[Mergify](https://mergify.com).
---
Mergify commands and options
More conditions and actions can be found in the
[documentation](https://docs.mergify.com/).
You can also trigger Mergify actions by commenting on this pull request:
- `@Mergifyio refresh` will re-evaluate the rules
- `@Mergifyio rebase` will rebase this PR on its base branch
- `@Mergifyio update` will merge the base branch into this PR
- `@Mergifyio backport ` will backport this PR on
`` branch
Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you
can:
- look at your merge queues
- generate the Mergify configuration with the config editor.
Finally, you can contact us on https://mergify.com
Co-authored-by: Rootul P
---
.github/workflows/ci-release.yml | 5 ++++-
.github/workflows/lint.yml | 2 --
.github/workflows/markdown-linter.yml | 4 ++--
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml
index 3c74eabfb1..35cbb48e9f 100644
--- a/.github/workflows/ci-release.yml
+++ b/.github/workflows/ci-release.yml
@@ -31,13 +31,16 @@ jobs:
lint:
uses: ./.github/workflows/lint.yml
+ markdown-linter:
+ uses: ./.github/workflows/markdown-linter.yml
+
test:
uses: ./.github/workflows/test.yml
# If this was a workflow dispatch event, we need to generate and push a tag
# for goreleaser to grab
version_bump:
- needs: [lint, test]
+ needs: [lint, markdown-linter, test]
runs-on: ubuntu-latest
permissions: "write-all"
steps:
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index ef15ef19de..a8a1318add 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -1,5 +1,3 @@
-# lint runs all linters in this repository. This workflow is run on every pull
-# request and push to main.
name: lint
on:
workflow_call:
diff --git a/.github/workflows/markdown-linter.yml b/.github/workflows/markdown-linter.yml
index 775b5b92d1..a2c114f237 100644
--- a/.github/workflows/markdown-linter.yml
+++ b/.github/workflows/markdown-linter.yml
@@ -1,6 +1,6 @@
-name: "markdown-linter"
+name: markdown-linter
on:
- push:
+ workflow_call:
jobs:
markdown-lint: