From 77c31402d38ea85fbad76a100fe05f9b6b56c068 Mon Sep 17 00:00:00 2001 From: Eduardo Blanco Date: Fri, 3 Oct 2025 15:25:35 +0200 Subject: [PATCH 1/4] FEAT: Add GitHub Actions workflow to notify PyAEDT examples repo on release --- .github/workflows/examples_tag_release.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/examples_tag_release.yml diff --git a/.github/workflows/examples_tag_release.yml b/.github/workflows/examples_tag_release.yml new file mode 100644 index 00000000000..6a68f7b884a --- /dev/null +++ b/.github/workflows/examples_tag_release.yml @@ -0,0 +1,19 @@ +name: Notify PyAEDT examples repo + +on: + release: + types: [published] + +jobs: + Dispatch: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Send dispatch to PyAEDT examples repo + uses: peter-evans/repository-dispatch@v4 + with: + token: ${{ secrets.PYAEDT_EXAMPLES_REPO_TOKEN }} + repository: ansys/pyaedt-examples + event-type: release_tag + client-payload: '{"tag": "${{ github.event.release.tag_name }}"}' From dccfb40ffbbf2feb8b2a00083b265ecd1724096e Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Fri, 3 Oct 2025 13:28:00 +0000 Subject: [PATCH 2/4] chore: adding changelog file 6731.added.md [dependabot-skip] --- doc/changelog.d/6731.added.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/6731.added.md diff --git a/doc/changelog.d/6731.added.md b/doc/changelog.d/6731.added.md new file mode 100644 index 00000000000..20ed13c7155 --- /dev/null +++ b/doc/changelog.d/6731.added.md @@ -0,0 +1 @@ +Add GitHub Actions workflow to notify PyAEDT examples repo on release From f9924f4b265eef158bd2c909498054f300691022 Mon Sep 17 00:00:00 2001 From: Eduardo Blanco Date: Tue, 21 Oct 2025 10:44:41 +0200 Subject: [PATCH 3/4] Fix --- .github/workflows/examples_tag_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/examples_tag_release.yml b/.github/workflows/examples_tag_release.yml index 6a68f7b884a..06f84d8b895 100644 --- a/.github/workflows/examples_tag_release.yml +++ b/.github/workflows/examples_tag_release.yml @@ -8,7 +8,7 @@ jobs: Dispatch: runs-on: ubuntu-latest permissions: - contents: read + contents: write steps: - name: Send dispatch to PyAEDT examples repo uses: peter-evans/repository-dispatch@v4 From 4759606ce393b719055e3205bb18827fc1915e62 Mon Sep 17 00:00:00 2001 From: Eduardo Blanco Date: Tue, 21 Oct 2025 12:15:27 +0200 Subject: [PATCH 4/4] FEAT: Add dispatch to PyAEDT examples repo on release tag and remove old workflow --- .github/workflows/ci_cd.yml | 8 ++++++++ .github/workflows/examples_tag_release.yml | 19 ------------------- 2 files changed, 8 insertions(+), 19 deletions(-) delete mode 100644 .github/workflows/examples_tag_release.yml diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index c2241f38484..603722842fc 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -1068,6 +1068,14 @@ jobs: generate_release_notes: false add-artifact-attestation-notes: true + - name: Send dispatch to PyAEDT examples repo + uses: peter-evans/repository-dispatch@5fc4efd1a4797ddb68ffd0714a238564e4cc0e6f # v4 + with: + token: ${{ secrets.PYAEDT_EXAMPLES_REPO_TOKEN }} + repository: ansys/pyaedt-examples + event-type: release_tag + client-payload: '{"tag": "${{ github.event.release.tag_name }}"}' + upload-release-doc: name: Upload release documentation if: github.event_name == 'push' && contains(github.ref, 'refs/tags') diff --git a/.github/workflows/examples_tag_release.yml b/.github/workflows/examples_tag_release.yml deleted file mode 100644 index 06f84d8b895..00000000000 --- a/.github/workflows/examples_tag_release.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Notify PyAEDT examples repo - -on: - release: - types: [published] - -jobs: - Dispatch: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: Send dispatch to PyAEDT examples repo - uses: peter-evans/repository-dispatch@v4 - with: - token: ${{ secrets.PYAEDT_EXAMPLES_REPO_TOKEN }} - repository: ansys/pyaedt-examples - event-type: release_tag - client-payload: '{"tag": "${{ github.event.release.tag_name }}"}'