From eda98679df6681f9577b512683bdb9e36db39d47 Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 3 Apr 2024 16:27:17 -0700 Subject: [PATCH] don't fetch from origin if unnecessary when performing OTA deploy (#3392) * run bundle/deploy on main pushes * don't fetch from origin if not necessary --- .github/workflows/bundle-deploy-eas-update.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/bundle-deploy-eas-update.yml b/.github/workflows/bundle-deploy-eas-update.yml index fe2bda695e..6a815707ed 100644 --- a/.github/workflows/bundle-deploy-eas-update.yml +++ b/.github/workflows/bundle-deploy-eas-update.yml @@ -46,6 +46,7 @@ jobs: fetch-depth: 100 - name: ⬇️ Fetch commits from base branch + if: ${{ github.ref != 'refs/heads/main' }} run: git fetch origin main:main --depth 100 # This should get the current production release's commit's hash to see if the update is compatible