From fab47f60fe147149933683b69a74855886e13951 Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 3 Apr 2024 15:17:06 -0700 Subject: [PATCH 1/2] run bundle/deploy on main pushes --- .github/workflows/bundle-deploy-eas-update.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/bundle-deploy-eas-update.yml b/.github/workflows/bundle-deploy-eas-update.yml index 1c7e57e5c3..fe2bda695e 100644 --- a/.github/workflows/bundle-deploy-eas-update.yml +++ b/.github/workflows/bundle-deploy-eas-update.yml @@ -2,6 +2,9 @@ name: Bundle and Deploy EAS Update on: + push: + branches: + - main workflow_dispatch: inputs: channel: From 5611239e7831fc8f75e1e25621c093619251f76d Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 3 Apr 2024 16:03:48 -0700 Subject: [PATCH 2/2] 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