Skip to content

Fork maintenance workflows#24

Merged
alex-vt merged 7 commits intomainfrom
fork-maintenance
Mar 31, 2026
Merged

Fork maintenance workflows#24
alex-vt merged 7 commits intomainfrom
fork-maintenance

Conversation

@alex-vt
Copy link
Copy Markdown
Collaborator

@alex-vt alex-vt commented Mar 31, 2026

GitHub Actions added to simplify/automate fork maintenance processes, such as keeping up with upstream, and building signed APK releases.

Summary of changes comparing to upstream dhis2/dhis2-android-capture-app:

Feature File / line of code Type of change Description
Infra: fork sync from upstream simcapture-sync-fork-upstream-main.yml New file GitHub Action to sync upstream's main to this repo's upstream-main nightly on Mon-Fri
Infra: automatic PR on upstream release simcapture-upstream-release-pr.yml New file GitHub Action to open a PR when upstream-main has an upstream release newly merged into it
Infra: signed APK releases simcapture-github-release-signed-apk.yml New file GitHub Action to create a GitHub Release on a merge to main
Infra: signed APK releases app/build.gradle.kts#L85 Code change App's Package ID set to com.simprints.simcapture
Infra: GitHub Actions filtering simcapture-disable-upstream-workflows.yml New file GitHub Action to limit allowed Actions to the ones starting with simcapture- or copilot-
Docs: fork-specific README README.md#L1-L29 Code change This section in README

SimCapture releases have the following naming scheme: SimCapture-DHIS2-<upstream_DHIS2_version>-fork-<SimCapture_version>.
An example of a release APK name: SimCapture-DHIS2-v3.3.1-fork-1-signed-release.apk.

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

This PR adds fork-maintenance automation for SimCapture, including syncing upstream changes, opening PRs when upstream releases land, and building/publishing signed APK releases, alongside minor fork-identification updates (README + Android applicationId).

Changes:

  • Add GitHub Actions workflows to (1) sync upstream main into upstream-main, (2) create PRs for newly merged upstream release branches, and (3) build a signed APK and publish a GitHub Release on main updates.
  • Update Android applicationId to com.simprints.simcapture.
  • Prepend a fork-specific SimCapture section to the repository README.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
README.md Adds fork-specific overview and links to maintenance workflows and fork naming conventions.
app/build.gradle.kts Changes applicationId to SimCapture’s package ID for the fork.
.github/workflows/simcapture-sync-fork-upstream-main.yml Nightly workflow to force-sync upstream main into fork upstream-main.
.github/workflows/simcapture-upstream-release-pr.yml Automation to open PRs for upstream release merges and delete upstream-release branches when PRs close.
.github/workflows/simcapture-github-release-signed-apk.yml Builds a signed APK and creates a GitHub Release/tag on pushes to main.

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

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread .github/workflows/simcapture-sync-fork-upstream-main.yml
Comment thread .github/workflows/simcapture-sync-fork-upstream-main.yml
Comment thread .github/workflows/simcapture-github-release-signed-apk.yml
Comment thread .github/workflows/simcapture-github-release-signed-apk.yml
Comment thread .github/workflows/simcapture-upstream-release-pr.yml
alex-vt and others added 2 commits March 31, 2026 10:51
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Collaborator

@TristramN TristramN left a comment

Choose a reason for hiding this comment

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

Nothing to add past Copilots CR, approving but def fix the idempotent rerun issue and check if we can used the short lived token 👍

Comment thread .github/workflows/simcapture-github-release-signed-apk.yml
Comment thread .github/workflows/simcapture-sync-fork-upstream-main.yml
Comment thread .github/workflows/simcapture-sync-fork-upstream-main.yml
@alex-vt alex-vt merged commit a8b6f24 into main Mar 31, 2026
1 of 2 checks passed
@alex-vt alex-vt deleted the fork-maintenance branch March 31, 2026 12:25
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.

3 participants