Skip to content

fix: explicitly checkout flutter-client-sdk repo in update-android-sdk-version workflow#234

Merged
suthar26 merged 1 commit into
mainfrom
copilot/fix-sed-command-in-workflow
Apr 21, 2026
Merged

fix: explicitly checkout flutter-client-sdk repo in update-android-sdk-version workflow#234
suthar26 merged 1 commit into
mainfrom
copilot/fix-sed-command-in-workflow

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 16, 2026

Problem

When the update-android-sdk-version.yaml workflow is called from another repository via workflow_call, the actions/checkout step (without an explicit repository parameter) defaults to checking out the caller's repository instead of DevCycleHQ/flutter-client-sdk. This causes the grep and sed commands to fail because android/build.gradle doesn't exist in the caller's repository.

In GitHub Actions reusable workflows, the github.repository context always refers to the caller's repository, so actions/checkout checks out the wrong codebase when invoked cross-repo.

Fix

Added repository: DevCycleHQ/flutter-client-sdk to the checkout step so the correct repository is always checked out, regardless of whether the workflow is triggered by:

  • schedule (same repo)
  • workflow_dispatch (same repo)
  • workflow_call (potentially from another repo)

Changes

  • .github/workflows/update-android-sdk-version.yaml — Added explicit repository parameter to the actions/checkout step

…k-version workflow

When this workflow is called from another repository via workflow_call,
actions/checkout defaults to checking out the caller's repository instead
of DevCycleHQ/flutter-client-sdk. This causes the sed and grep commands
to fail because android/build.gradle doesn't exist in the caller's repo.

Adding explicit repository parameter ensures the correct repo is always
checked out regardless of the calling context.

Agent-Logs-Url: https://github.com/DevCycleHQ/flutter-client-sdk/sessions/8e61db8f-139a-47c6-806b-10b0478687dc

Co-authored-by: suthar26 <8922654+suthar26@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Ensures the reusable update-android-sdk-version GitHub Actions workflow always checks out the DevCycleHQ/flutter-client-sdk repository (not the caller repo) so version-update steps reliably find android/build.gradle when invoked via workflow_call.

Changes:

  • Explicitly sets repository: DevCycleHQ/flutter-client-sdk on the actions/checkout step in the Android SDK update workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/update-android-sdk-version.yaml
@suthar26 suthar26 marked this pull request as ready for review April 20, 2026 15:04
@suthar26 suthar26 requested a review from a team as a code owner April 20, 2026 15:04
@suthar26 suthar26 merged commit 4f92822 into main Apr 21, 2026
8 checks passed
@suthar26 suthar26 deleted the copilot/fix-sed-command-in-workflow branch April 21, 2026 15:32
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.

4 participants