Skip to content

Commit

Permalink
Merge pull request #1372 from greenpeace/post-comment
Browse files Browse the repository at this point in the history
Add a job for posting a PR comment when test instance is ready
  • Loading branch information
comzeradd authored Apr 27, 2021
2 parents 17c6b31 + c18f044 commit 31f3c9e
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ workflows:
type: approval
requires:
- request-instance
- comment-pr:
context: org-global
requires:
- instance-ready
- lighthouse:
requires:
- instance-ready
Expand Down Expand Up @@ -222,7 +226,7 @@ jobs:
environment:
GOOGLE_PROJECT_ID: planet-4-151612
docker:
- image: greenpeaceinternational/p4-builder:latest
- image: greenpeaceinternational/circleci-base:latest
auth: &docker_auth
steps:
- attach_workspace:
Expand Down Expand Up @@ -269,6 +273,21 @@ jobs:
paths:
- test-instance
- booking.json
- pr

comment-pr:
docker:
- image: greenpeaceinternational/circleci-base:latest
auth: &docker_auth
steps:
- attach_workspace:
at: /tmp/workspace
- run:
name: Post comment to PR
command: |
post-comment-to-pr.py \
--pr-url $(cat /tmp/workspace/pr) \
--test-instance $(cat /tmp/workspace/test-instance)
lighthouse:
executor: lighthouse-check/default
Expand Down

0 comments on commit 31f3c9e

Please sign in to comment.