Skip to content

fix(ci): checkout Android SDK explicitly in bump-kmp reusable workflow#2694

Merged
abdulraqeeb33 merged 1 commit into
mainfrom
fix/bump-kmp-checkout-caller-repo
Jul 24, 2026
Merged

fix(ci): checkout Android SDK explicitly in bump-kmp reusable workflow#2694
abdulraqeeb33 merged 1 commit into
mainfrom
fix/bump-kmp-checkout-caller-repo

Conversation

@abdulraqeeb33

Copy link
Copy Markdown
Contributor

Summary

The KMP Release → bump-android job failed after tagging v0.1.1:

Permission to OneSignal/OneSignal-KMP-SDK.git denied to onesignal-deploy

Root cause: in a workflow_call reusable workflow, actions/checkout defaults to the caller repo (OneSignal-KMP-SDK), not the repo that owns the workflow. The bump step then created a self-submodule gitlink in KMP and tried to push there.

Fix

Pin repository: OneSignal/OneSignal-Android-SDK and ref: main in the checkout step.

Follow-up

After this lands, re-run the KMP Release bump (or dispatch this workflow with kmp_version=v0.1.1 / kmp_sha=4864ae1…) to open the submodule bump PR. The tag/GitHub Release already succeeded.

Test plan

  • Merge this PR
  • Dispatch Bump KMP Submodule with v0.1.1 / SHA from the KMP release, or re-run the failed bump job after a no-op release retry path
  • Confirm the opened PR targets OneSignal-Android-SDK and updates the OneSignal-KMP-SDK gitlink only

Made with Cursor

Reusable workflow_call keeps the caller's github.repository, so bare
actions/checkout was cloning OneSignal-KMP-SDK and the bump push got a 403
from onesignal-deploy. Pin repository/ref to this repo instead.

Co-authored-by: Cursor <cursoragent@cursor.com>

@fadi-george fadi-george left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@github-actions

Copy link
Copy Markdown
Contributor

📊 Diff Coverage Report

✓ Coverage check passed (no source files changed)

📥 View workflow run

@abdulraqeeb33
abdulraqeeb33 merged commit d5f4148 into main Jul 24, 2026
5 of 6 checks passed
@abdulraqeeb33
abdulraqeeb33 deleted the fix/bump-kmp-checkout-caller-repo branch July 24, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants