From 2e1d35fe9e488d6279bc9af5d4ff97c4c3c6b2d2 Mon Sep 17 00:00:00 2001 From: Dien-Nhung Nguyen-Phu Date: Sat, 11 May 2024 11:47:49 +0700 Subject: [PATCH] chore: skip upload APK on PRs Pull requests doesn't have permission to upload to APK branch. So Badge Magic CI should skip this step for PRs. --- .github/workflows/branch-push.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/branch-push.yml b/.github/workflows/branch-push.yml index 6cbc48222..422100e00 100644 --- a/.github/workflows/branch-push.yml +++ b/.github/workflows/branch-push.yml @@ -49,6 +49,8 @@ jobs: path: android/build/outputs/bundle/release - name: Upload APK to apk branch + # Skip upload APK for pull requests + if: ${{ github.event_name != 'pull_request'}} run: | git config --global user.name "${{ github.workflow }}" git config --global user.email "gh-actions@${{ github.repository_owner }}"