Skip to content

Commit

Permalink
stage
Browse files Browse the repository at this point in the history
  • Loading branch information
northword committed Oct 7, 2023
1 parent 12f40d2 commit 63c32fa
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/comment-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Comment PR

on:
workflow_call:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DavidAnson/markdownlint-cli2-action@v13

- id: lint
uses: DavidAnson/markdownlint-cli2-action@v13
with:
globs: |
**/*.md
!test/*.md
outputs:
lintLog: ${{ steps.lint.outputs.firstword }}
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ jobs:
- lint
- build
uses: ./.github/workflows/deploy-gh-pages.yml

comment:
if: github.event_name == 'pull_request'
needs:
- lint
- build
uses: ./.github/workflows/comment-pr.yml

0 comments on commit 63c32fa

Please sign in to comment.