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 11name : Zola
22
3- on : [push, pull_request]
3+ on :
4+ push :
5+ branches : source
6+ pull_request :
47
58jobs :
69 zola :
1821 with :
1922 args : ' .'
2023 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+ });
2135 - name : Install Zola
2236 run : curl -L ${BASE_URL}/${VERS}/zola-${VERS}-${ARCH}.tar.gz | tar -xz
2337 - run : ./zola --version
You can’t perform that action at this time.
0 commit comments