Create separate steps/jobs for PR/Forks versus branches

Got a syntax error with that, but tweaked it with help from ShellCheck:

command: |
  if [[ $(echo "$CIRCLE_BRANCH" | grep -c "pull") -gt 0 ]]; then
    echo "Skip doing stuff since it is a PR."
  else
    echo "Not a PR, so now do what I want."
  fi
2 Likes