From d51c33404120d85073e72814ff1c050b87391b6a Mon Sep 17 00:00:00 2001 From: Ahmed Sadek <164015259+asadekasam@users.noreply.github.com> Date: Wed, 10 Dec 2025 09:01:48 +0100 Subject: [PATCH 1/3] Create remote_release.yml Create the YML file to allow remote tagging from the open-simulation-interface repo release Signed-off-by: Ahmed Sadek ahmed.sadek@asam.net --- .github/workflows/remote_release.yml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/remote_release.yml diff --git a/.github/workflows/remote_release.yml b/.github/workflows/remote_release.yml new file mode 100644 index 0000000..a6e308e --- /dev/null +++ b/.github/workflows/remote_release.yml @@ -0,0 +1,30 @@ +name: Remote Tagging + +on: + repository_dispatch: + types: [update-tag] + +permissions: + contents: write + repository-projects: write + +jobs: + submodule: + name: Update submodule and create tag + runs-on: Ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. + + - name: Create tag + run: git tag ${{ github.event.client_payload.tag }} + + - name: GitHub Push + uses: ad-m/github-push-action@v0.6.0 + with: + # Token for the repo. Can be passed in using $\{{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.MACHINE_USER_PAT }} + # Determines if --tags is used + tags: true From 9772ef64d2f1876ca1e72730d20985b4f5f06840 Mon Sep 17 00:00:00 2001 From: "Pierre R. Mai" Date: Fri, 19 Dec 2025 09:44:09 +0100 Subject: [PATCH 2/3] Adjust remote_release workflow to update submodule Signed-off-by: Pierre R. Mai --- .github/workflows/remote_release.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/remote_release.yml b/.github/workflows/remote_release.yml index a6e308e..9decec6 100644 --- a/.github/workflows/remote_release.yml +++ b/.github/workflows/remote_release.yml @@ -17,7 +17,20 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. - + + - name: Update submodule + run: | + git submodule init + git submodule update --recursive --remote + cd open-simulation-interface + git checkout ${{ github.event.client_payload.tag }} + cd .. + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git add open-simulation-interface + git commit -m "OSI submodule updated" + continue-on-error: true + - name: Create tag run: git tag ${{ github.event.client_payload.tag }} From 16ddd77e4a5657147eaab6f2e07d9db4db1afe27 Mon Sep 17 00:00:00 2001 From: "Pierre R. Mai" Date: Fri, 19 Dec 2025 13:50:18 +0100 Subject: [PATCH 3/3] Add force option to remote_release workflow --- .github/workflows/remote_release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/remote_release.yml b/.github/workflows/remote_release.yml index 9decec6..fab96a6 100644 --- a/.github/workflows/remote_release.yml +++ b/.github/workflows/remote_release.yml @@ -41,3 +41,4 @@ jobs: github_token: ${{ secrets.MACHINE_USER_PAT }} # Determines if --tags is used tags: true + force: true