File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : Zola
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ push :
5
+ branches : source
6
+ pull_request :
4
7
5
8
jobs :
6
9
zola :
18
21
with :
19
22
args : ' .'
20
23
config : ' .markdownlint.json'
24
+ - name : Comment if lints failed
25
+ if : failure() && github.base_ref # base_ref is only set for PRs
26
+ uses : actions/github-script@v3
27
+ with :
28
+ script : |
29
+ github.issues.createComment({
30
+ owner: context.repo.owner,
31
+ repo: context.repo.repo,
32
+ issue_number: context.issue.number,
33
+ body: "It looks like the MarkdownLint checks for this PR have failed. Please take a look at the 'Checks' tab to see what needs changing."
34
+ });
21
35
- name : Install Zola
22
36
run : curl -L ${BASE_URL}/${VERS}/zola-${VERS}-${ARCH}.tar.gz | tar -xz
23
37
- run : ./zola --version
You can’t perform that action at this time.
0 commit comments