From c0417ce647335ff33497f6e381de1d0683fb9303 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@users.noreply.github.com> Date: Tue, 15 Jun 2021 15:09:04 -0400 Subject: [PATCH] Stop the job at some point if it is for a forked PR Co-authored-by: Tom Prince <tom.prince@hocat.ca> --- .circleci/config.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0cc71ac..dfd4045 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -180,6 +180,14 @@ jobs: --arg collectCoverage true \ --attr doc + - run: + name: Early return if this build is from a forked PR + command: | + if [ -n "$CIRCLE_PR_NUMBER" ]; then + echo "Nothing to do for forked PRs, so marking this step successful" + circleci step halt + fi + - run: name: "Push to Cachix" when: "always" -- GitLab