diff --git a/.github/workflows/ios-ci.yml b/.github/workflows/ios-ci.yml index bcc611cdc..ee94277d5 100644 --- a/.github/workflows/ios-ci.yml +++ b/.github/workflows/ios-ci.yml @@ -291,6 +291,11 @@ jobs: # Trigger release on main if VERSION file changed + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4 + if: github.ref == 'refs/heads/main' + with: + persist-credentials: false + - name: VERSION file changed if: github.ref == 'refs/heads/main' id: version-file-ios-changed @@ -298,10 +303,6 @@ jobs: with: files: platform/ios/VERSION - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4 - with: - persist-credentials: false - - name: Run release if: github.ref == 'refs/heads/main' && steps.version-file-ios-changed.outputs.any_changed == 'true' env: