From c1899b6247e5d9e77c112214a87f5d666b9e838d Mon Sep 17 00:00:00 2001 From: Anne Heimes Date: Tue, 7 Apr 2026 12:55:18 +0200 Subject: [PATCH 1/3] add template to sent trigger version --- .../trigger_new_template_version.yml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/trigger_new_template_version.yml diff --git a/.github/workflows/trigger_new_template_version.yml b/.github/workflows/trigger_new_template_version.yml new file mode 100644 index 0000000..4399fb6 --- /dev/null +++ b/.github/workflows/trigger_new_template_version.yml @@ -0,0 +1,21 @@ + +name: send new template version trigger + +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" + +jobs: + dispatch: + strategy: + matrix: + repo: ['pyfar/pyfar', 'pyfar/spharpy', 'pyfar/sofar', 'pyfar/pyrato'] + runs-on: ubuntu-latest + steps: + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v4 + with: + token: ${{ secrets.PAT }} + repository: ${{ matrix.repo }} + event-type: new-template-version From 320f8ae238ab670ebff1a1db0776396dd5926ed0 Mon Sep 17 00:00:00 2001 From: Anne Heimes <64446926+ahms5@users.noreply.github.com> Date: Sat, 11 Apr 2026 12:36:03 +0200 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/trigger_new_template_version.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/trigger_new_template_version.yml b/.github/workflows/trigger_new_template_version.yml index 4399fb6..2041b4f 100644 --- a/.github/workflows/trigger_new_template_version.yml +++ b/.github/workflows/trigger_new_template_version.yml @@ -8,6 +8,7 @@ on: jobs: dispatch: + if: ${{ github.event.created == true && github.event.deleted != true }} strategy: matrix: repo: ['pyfar/pyfar', 'pyfar/spharpy', 'pyfar/sofar', 'pyfar/pyrato'] @@ -19,3 +20,4 @@ jobs: token: ${{ secrets.PAT }} repository: ${{ matrix.repo }} event-type: new-template-version + client-payload: '{"template_version":"${{ github.ref_name }}","source_repository":"${{ github.repository }}"}' From 94ac4d1100a69eb9f6ae2f6d3dbdf457617ee5df Mon Sep 17 00:00:00 2001 From: Anne Heimes <64446926+ahms5@users.noreply.github.com> Date: Sat, 11 Apr 2026 13:16:39 +0200 Subject: [PATCH 3/3] Apply suggestion from @ahms5 --- .github/workflows/trigger_new_template_version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/trigger_new_template_version.yml b/.github/workflows/trigger_new_template_version.yml index 2041b4f..3851e37 100644 --- a/.github/workflows/trigger_new_template_version.yml +++ b/.github/workflows/trigger_new_template_version.yml @@ -11,7 +11,7 @@ jobs: if: ${{ github.event.created == true && github.event.deleted != true }} strategy: matrix: - repo: ['pyfar/pyfar', 'pyfar/spharpy', 'pyfar/sofar', 'pyfar/pyrato'] + repo: ['pyfar/pyfar', 'pyfar/spharpy', 'pyfar/sofar', 'pyfar/pyrato', 'pyfar/imkar'] runs-on: ubuntu-latest steps: - name: Repository Dispatch