diff --git a/.github/fork-sync/report.sh b/.github/fork-sync/report.sh index 8472c17e6f..d584098ec4 100755 --- a/.github/fork-sync/report.sh +++ b/.github/fork-sync/report.sh @@ -106,7 +106,7 @@ report_failure() { return fi - gh label create "$label" --color D93F0B --description "Problems syncing this fork with upstream" 2> /dev/null || true + gh label create "$label" --force --color D93F0B --description "Problems syncing this fork with upstream" || true gh issue create --title "$title" --body "$body" --label "$label" --assignee "$GITHUB_REPOSITORY_OWNER" || gh issue create --title "$title" --body "$body" --label "$label" } diff --git a/.github/workflows/fork-sync.yml b/.github/workflows/fork-sync.yml index 55cdce4272..5e8ba4ceef 100644 --- a/.github/workflows/fork-sync.yml +++ b/.github/workflows/fork-sync.yml @@ -41,6 +41,8 @@ env: FLAVOR: ${{ vars.KDRIVE_FLAVOR || 'standard' }} UPSTREAM_TRACK: ${{ vars.UPSTREAM_TRACK || 'release' }} ISSUE_LABEL: fork-sync + # sync.sh adds an "upstream" remote, which gh would otherwise pick over origin. + GH_REPO: ${{ github.repository }} BOT_NAME: github-actions[bot] BOT_EMAIL: 41898233+github-actions[bot]@users.noreply.github.com @@ -154,7 +156,13 @@ jobs: fi # --stacktrace: some failures (packaging, for one) only name their cause in the stack trace. - args=(--stacktrace --init-script .github/fork-sync/skip-sentry-upload.init.gradle) + # The project's 4 GB Gradle heap runs out while packaging and signing the ~190 MB APK; + # the runner has 16 GB, so give Gradle 6 GB and keep Kotlin's daemon at its usual 4 GB. + args=( + --stacktrace + --init-script .github/fork-sync/skip-sentry-upload.init.gradle + "-Dorg.gradle.jvmargs=-Xmx6g -Dkotlin.daemon.jvm.options=-Xmx4g" + ) if [[ -n "$KEYSTORE_BASE64" ]]; then base64 --decode <<< "$KEYSTORE_BASE64" > "$RUNNER_TEMP/release.keystore" args+=(