Skip to content
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

build: Post pull request comments on build check failure #218

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- '3.9'
- '3.10'

name: Build
name: build

# We want to run this workflow on each push to a topic branch, and on
# each pull request. Once we merge to main, we want to run the
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: |
tox -e check-prod

name: 'Check links'
name: check

# We want to run this workflow every time we build the site.
# In addition, we want to run it once a week on a schedule.
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Post a comment back on a PR thread, in case an associated workflow
# failed. Note that comment-failure-action is a no-op in case the
# workflow was not invoked in response to a PR. In other words, this
# action only creates comments for workflows configured with
# "on: pull_request".
---
jobs:
comment-failure:
runs-on: ubuntu-latest
steps:
- uses: quipper/[email protected]

name: comment

'on':
workflow_run:
types:
- completed
workflows:
- build
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Deploy to gh-pages
run: tox -e deploy-github

name: Deploy
name: deploy

'on':
push:
Expand Down