-
Notifications
You must be signed in to change notification settings - Fork 16
45 lines (40 loc) · 908 Bytes
/
style.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Lint Markdown / Toml
on:
pull_request:
paths:
- '**.json'
- '**.toml'
- '**.md'
- '**.yml'
- '**.yaml'
push:
branches: [main]
paths:
- '**.json'
- '**.toml'
- '**.md'
- '**.yml'
- '**.yaml'
merge_group:
types: [checks_requested]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: dprint/check@2f1cf31537886c3bfb05591c031f7744e48ba8a1 # v2.2
result:
name: Result (Style)
runs-on: ubuntu-latest
needs:
- style
steps:
- name: Mark the job as successful
run: exit 0
if: success()
- name: Mark the job as unsuccessful
run: exit 1
if: "!success()"