From a29528f1fd4dcd7f8554226b31c752469e25185c Mon Sep 17 00:00:00 2001 From: Devin Binnie <52460000+devinbinnie@users.noreply.github.com> Date: Wed, 26 Oct 2022 15:12:44 -0400 Subject: [PATCH] Stop unnecessary TestFlight builds (#2323) --- .circleci/config.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index a7a0eff7..ee0b5898 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -393,6 +393,14 @@ jobs: name: Patch version number for MAS command: ./scripts/patch_mas_version.sh - run: npm run package:mas + - run: + name: Don't submit unless it's on a tag or it's the nightly build + command: | + if [ -z `git name-rev --name-only --tags --no-undefined HEAD 2>/dev/null` ]; then + if [ `git rev-parse --abbrev-ref HEAD` != "nightly" ]; then + circleci-agent step halt + fi + fi - run: name: 'Upload to App Store Connect' command: fastlane publish_test path:"$(find . -name \*.pkg -print -quit)"