11---
22name : Linting with Vale
3+ # This is a basic workflow to help you get started with Actions
34on : [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
519jobs :
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