Skip to content

Commit d1c13bb

Browse files
committed
add
Signed-off-by: A.Arnold <[email protected]>
1 parent 0e470ce commit d1c13bb

File tree

2 files changed

+63
-10
lines changed

2 files changed

+63
-10
lines changed

.github/workflows/Docs-Linting.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This is a basic workflow to help you get started with Actions.
2+
3+
name: Docs-Linting
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the main branch
8+
push:
9+
branches: [ main ]
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
jobs:
15+
prose:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@master
20+
21+
- name: Vale
22+
uses: errata-ai/[email protected]
23+
with:
24+
debug: true
25+
styles: |
26+
https://github.com/errata-ai/write-good/releases/latest/download/write-good.zip
27+
https://github.com/errata-ai/Microsoft/releases/latest/download/Microsoft.zip
28+
29+
env:
30+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/lint-with-vale.yml

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,40 @@
11
---
22
name: Linting with Vale
3+
# This is a basic workflow to help you get started with Actions
34
on: [pull_request]
45

6+
7+
# Controls when the workflow will run
8+
on:
9+
# Triggers the workflow on push or pull request events but only for the main branch
10+
push:
11+
branches: [ main ]
12+
pull_request:
13+
branches: [ main ]
14+
15+
# Allows you to run this workflow manually from the Actions tab
16+
workflow_dispatch:
17+
18+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
519
jobs:
6-
vale:
7-
name: Linting with Vale
20+
# This workflow contains a single job called "build"
21+
build:
22+
# The type of runner that the job will run on
823
runs-on: ubuntu-latest
24+
25+
# Steps represent a sequence of tasks that will be executed as part of the job
926
steps:
10-
- uses: actions/checkout@v3
11-
- name: Install Asciidoctor
12-
run: sudo apt-get install -y asciidoctor
13-
- uses: errata-ai/vale-action@reviewdog
14-
with:
15-
files: docs/
16-
reporter: github-pr-check
17-
fail_on_error: true
27+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
28+
- uses: actions/checkout@v2
29+
30+
# Runs a single command using the runners shell
31+
- name: Run a one-line script
32+
run: echo Hello, world!
33+
34+
# Runs a set of commands using the runners shell
35+
- name: Run a multi-line script
36+
run: |
37+
echo Add other actions to build,
38+
echo test, and deploy your project.
39+
env:
40+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)