From 214da6153ef4b8ed33b3224844758f112e0ff5d3 Mon Sep 17 00:00:00 2001 From: Jamil Date: Mon, 30 Dec 2024 11:26:45 -0800 Subject: [PATCH] fix(ci): Only trigger Apple artifact uploads on `workflow_dispatch` trigger (#7611) Unfortunately Apple's API doesn't expect to be hit this frequently and also doesn't respond with obvious errors when we ask too much of it. Because of this, we move the App Store connect upload back to manual trigger only, and update the standalone upload to GitHub releases to the same because it needs to hit Apple's notary service API. --- .github/workflows/_swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_swift.yml b/.github/workflows/_swift.yml index d5b91f1ac..75a915607 100644 --- a/.github/workflows/_swift.yml +++ b/.github/workflows/_swift.yml @@ -71,7 +71,7 @@ jobs: API_KEY_ID: "${{ secrets.APPLE_APP_STORE_CONNECT_API_KEY_ID }}" API_KEY: "${{ secrets.APPLE_APP_STORE_CONNECT_API_KEY }}" - run: ${{ matrix.upload-script }} - if: "${{ github.event_name == 'workflow_dispatch' || github.ref_name == 'main' }}" + if: "${{ github.event_name == 'workflow_dispatch' }}" env: ARTIFACT_PATH: "${{ runner.temp }}/${{ matrix.artifact-file }}" ISSUER_ID: "${{ secrets.APPLE_APP_STORE_CONNECT_ISSUER_ID }}"