From 97cd2cfd2c5ed53edee238e6da1bc7d5cd36bcdd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 19:02:55 +0000 Subject: [PATCH 1/3] Initial plan From 2da22535a142a0f9090632f2010a9e685ba0d9c2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 19:04:39 +0000 Subject: [PATCH 2/3] Use shared setup action in dependency baseline workflow Agent-Logs-Url: https://github.com/mtransitapps/commons/sessions/44ba06e7-28a5-4e16-a03e-19cb4fa8618f Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com> --- .github/workflows/mt-dependency-update-baseline.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/mt-dependency-update-baseline.yml b/.github/workflows/mt-dependency-update-baseline.yml index 17ac5d72..dea4f6e0 100644 --- a/.github/workflows/mt-dependency-update-baseline.yml +++ b/.github/workflows/mt-dependency-update-baseline.yml @@ -79,13 +79,9 @@ jobs: echo "MT_GIT_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV - name: MT code setup run: ./commons/code_setup.sh - - name: MT set up JDK 17 - uses: actions/setup-java@v5 - with: - distribution: 'temurin' - java-version: '17' - - name: Setup Gradle - uses: gradle/actions/setup-gradle@v6 + - name: MT setup + id: mt-setup + uses: mtransitapps/gh-actions/.github/actions/setup@v1.0.1 - name: MT dependency update baseline run: ./dependency_update_baseline.sh - name: MT commit new baseline From 970353a27676222eb86db1bfaf2df47c5b729d14 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 21:18:58 +0000 Subject: [PATCH 3/3] Replace duplicated baseline workflow steps with shared setup action Agent-Logs-Url: https://github.com/mtransitapps/commons/sessions/e45cd1c8-ed1b-4191-aefe-e28d34178623 Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com> --- .../mt-dependency-update-baseline.yml | 30 +++---------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/.github/workflows/mt-dependency-update-baseline.yml b/.github/workflows/mt-dependency-update-baseline.yml index dea4f6e0..8d9ed0f2 100644 --- a/.github/workflows/mt-dependency-update-baseline.yml +++ b/.github/workflows/mt-dependency-update-baseline.yml @@ -18,6 +18,10 @@ env: MT_BRANCH_NAME: ${{ github.head_ref || github.ref_name }} MT_TARGET_BRANCH_NAME: ${{ github.base_ref || github.ref_name }} MT_DEFAULT_BRANCH_NAME: ${{ github.event.repository.default_branch }} + # repo type + MT_IS_SUBMODULE: ${{ contains(fromJSON('["mtransitapps/commons", "mtransitapps/commons-java", "mtransitapps/parser", "mtransitapps/commons-android"]'), github.repository) }} + MT_IS_MAIN_REPO: ${{ endsWith(github.repository, '/mtransit-for-android') }} + MT_IS_AGENCY_REPO: ${{ ! contains(fromJSON('["mtransitapps/commons", "mtransitapps/commons-java", "mtransitapps/parser", "mtransitapps/commons-android"]'), github.repository) && ! endsWith(github.repository, '/mtransit-for-android')}} jobs: MT-DEPENDENCY-UPDATE-BASELINE-JOB: name: "MT Dependency update baseline" @@ -53,32 +57,6 @@ jobs: submodules: true # required to set right token token: ${{ secrets.MT_PAT || secrets.MT_DEPENDABOT_PAT }} # use our token to trigger workflow events, if available fetch-depth: 0 # fetch all (not required util release build) - - name: MT check out submodules - run: ./checkout_submodules.sh - - name: MT check out all git submodule closest branch - if: github.event_name == 'pull_request' - run: | - echo "[MT] > Checking out submodules closest branch, '$MT_BRANCH_NAME' or '$MT_TARGET_BRANCH_NAME' or '$MT_DEFAULT_BRANCH_NAME':" - git submodule foreach 'git checkout $MT_BRANCH_NAME || git checkout $MT_TARGET_BRANCH_NAME || git checkout $MT_DEFAULT_BRANCH_NAME' - echo "[MT] > Showing submodules current branch:" - git submodule foreach 'git branch --show-current' - - name: MT check out this module repo build branch - run: | - REPOSITORY_OWNER_AND_NAME=${{ github.repository }}; - REPOSITORY_NAME=$(basename $REPOSITORY_OWNER_AND_NAME); - echo "Repository name: '$REPOSITORY_NAME'." - echo "Fetching from repo '$REPOSITORY_NAME':" - git -C $REPOSITORY_NAME fetch -v --all; - echo "Checking our this repo '$REPOSITORY_NAME' workflow branch '$MT_BRANCH_NAME':" - git -C $REPOSITORY_NAME switch $MT_BRANCH_NAME; - echo "Pulling from repo '$REPOSITORY_NAME':" - git -C $REPOSITORY_NAME pull -v; - - name: MT setup MT_GIT_BRANCH env - if: github.event_name != 'pull_request' - run: | - echo "MT_GIT_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV - - name: MT code setup - run: ./commons/code_setup.sh - name: MT setup id: mt-setup uses: mtransitapps/gh-actions/.github/actions/setup@v1.0.1