Skip to content

Automatically comment if a PR doesn't meet the style guide #453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Zola

on: [push, pull_request]
on:
push:
branches: source
pull_request:

jobs:
zola:
Expand All @@ -18,6 +21,17 @@ jobs:
with:
args: '.'
config: '.markdownlint.json'
- name: Comment if lints failed
if: failure() && github.base_ref # base_ref is only set for PRs
uses: actions/github-script@v3
with:
script: |
github.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
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."
});
- name: Install Zola
run: curl -L ${BASE_URL}/${VERS}/zola-${VERS}-${ARCH}.tar.gz | tar -xz
- run: ./zola --version
Expand Down