Skip to content

Commit

Permalink
Halt comment-pr CI job if there is no PR
Browse files Browse the repository at this point in the history
  • Loading branch information
comzeradd committed Oct 20, 2022
1 parent cf1342b commit 808b1c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,12 @@ jobs:
steps:
- attach_workspace:
at: /tmp/workspace
- run:
name: Check if there is a PR
command: |
if [ ! -f /tmp/workspace/pr ]; then
circleci-agent step halt
fi
- run:
name: Post comment to PR
command: |
Expand Down

0 comments on commit 808b1c2

Please sign in to comment.