diff --git a/.github/workflows/update-deps.yml b/.github/workflows/update-deps.yml index e7ec205a..a19701ea 100644 --- a/.github/workflows/update-deps.yml +++ b/.github/workflows/update-deps.yml @@ -1,25 +1,24 @@ name: Update Dependencies on: - # Run every day. schedule: - cron: '0 3 * * *' - # And on on every PR merge so we get the updated dependencies ASAP, and to make sure the changelog doesn't conflict.gi push: branches: - main jobs: cocoa: - uses: getsentry/github-workflows/.github/workflows/updater.yml@v3 + uses: getsentry/github-workflows/.github/workflows/updater.yml@v2 with: path: scripts/update-cocoa.sh name: Cocoa SDK + runs-on: macos-latest secrets: api-token: ${{ secrets.CI_DEPLOY_KEY }} java: - uses: getsentry/github-workflows/.github/workflows/updater.yml@v3 + uses: getsentry/github-workflows/.github/workflows/updater.yml@v2 with: path: scripts/update-java.sh name: Java SDK diff --git a/scripts/update-cocoa.sh b/scripts/update-cocoa.sh index 8e82cc1b..da0db50d 100755 --- a/scripts/update-cocoa.sh +++ b/scripts/update-cocoa.sh @@ -75,6 +75,10 @@ set-version) newValue="${sample_podspec_var_name}'$2'" echo "${sample_podspec_content/${sample_podspec_whole_match}/$newValue}" >$sample_podspec_file + # Generate dummy framework first (required for pod update to work) + echo "Generating dummy framework for shared module..." + ./gradlew :sentry-samples:kmp-app-cocoapods:shared:generateDummyFramework + # Run pod update in the sample iOS app directory to update Podfile.lock echo "Running pod update in $sample_ios_app_dir..." (cd $sample_ios_app_dir && pod update)