Add lightweight mt-check-release-needed workflow to trigger release on stale tag or data changes#684
Draft
Add lightweight mt-check-release-needed workflow to trigger release on stale tag or data changes#684
mt-check-release-needed workflow to trigger release on stale tag or data changes#684Conversation
Agent-Logs-Url: https://github.com/mtransitapps/commons/sessions/ef7f3514-1f1a-4720-b6ca-eae19094b1ca Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com>
Agent-Logs-Url: https://github.com/mtransitapps/commons/sessions/ef7f3514-1f1a-4720-b6ca-eae19094b1ca Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com>
Agent-Logs-Url: https://github.com/mtransitapps/commons/sessions/ef7f3514-1f1a-4720-b6ca-eae19094b1ca Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com>
Agent-Logs-Url: https://github.com/mtransitapps/commons/sessions/ef7f3514-1f1a-4720-b6ca-eae19094b1ca Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com>
Agent-Logs-Url: https://github.com/mtransitapps/commons/sessions/ef7f3514-1f1a-4720-b6ca-eae19094b1ca Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com>
Agent-Logs-Url: https://github.com/mtransitapps/commons/sessions/ef7f3514-1f1a-4720-b6ca-eae19094b1ca Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com>
Agent-Logs-Url: https://github.com/mtransitapps/commons/sessions/ef7f3514-1f1a-4720-b6ca-eae19094b1ca Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com>
Agent-Logs-Url: https://github.com/mtransitapps/commons/sessions/ef7f3514-1f1a-4720-b6ca-eae19094b1ca Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com>
Agent-Logs-Url: https://github.com/mtransitapps/commons/sessions/ef7f3514-1f1a-4720-b6ca-eae19094b1ca Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com>
Agent-Logs-Url: https://github.com/mtransitapps/commons/sessions/ef7f3514-1f1a-4720-b6ca-eae19094b1ca Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Create new mt-check-release-needed.yml workflow
Add lightweight Apr 17, 2026
mt-check-release-needed workflow to trigger release on stale tag or data changes
mmathieum
approved these changes
Apr 17, 2026
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new GitHub Actions workflow, mt-check-release-needed.yml, which automates the decision to trigger a release based on a seven-week time limit or detected changes in specific Android resource directories. The review feedback recommends enhancing the tag detection logic to ensure the identified tag is reachable from the current branch and suggests optimizing the file change detection by replacing the loop with a single git diff call for improved efficiency and clearer logging.
…heck-release-needed-yml
mmathieum
added a commit
to mtransitapps/fr-perpignan-sankeo-bus-android
that referenced
this pull request
Apr 17, 2026
mmathieum
reviewed
Apr 17, 2026
Agent-Logs-Url: https://github.com/mtransitapps/commons/sessions/6f70a85b-a813-4247-b595-64c3078ddb94 Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com>
Member
|
TODO:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This introduces a new fast workflow in
shared-overwrite/.github/workflowsthat runs on manual dispatch and pushes tomaster, and decides whethermt-release.ymlshould be triggered. It mirrors the release-needed intent from existing scripts while avoiding submodule-heavy setup.New workflow: release-needed gate
mt-check-release-needed.ymlwith:on.workflow_dispatchon.push.branches: [master]Release decision logic
4233600seconds).mt-release.yml.Data change detection since last release tag
LAST_TAG..HEADand exits on first match across:app-android/src/main/res/values/gtfs_rts_values_gen.xmlapp-android/src/main/res/raw/**app-android/src/main/res-current/values/current_gtfs_rts_values_gen.xmlapp-android/src/main/res-current/raw/**app-android/src/main/res-next/values/next_gtfs_rts_values_gen.xmlapp-android/src/main/res-next/raw/**Trigger behavior
gh workflow run mt-release.ymlwhen either condition is true:GH_TOKENfromsecrets.MT_PAT.