From 9855534617d509b909cea90f0a97485a34c4706a Mon Sep 17 00:00:00 2001 From: Brett Lykins Date: Mon, 28 Apr 2025 10:48:14 -0400 Subject: [PATCH 1/2] 1.11.1 release (#378) * 1.11.1 release prep --- CHANGELOG.md | 6 ++++++ .../+hfid_support_cardinality_many_relationships.changed.md | 1 - pyproject.toml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) delete mode 100644 changelog/+hfid_support_cardinality_many_relationships.changed.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ce592d0..fe05e3ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang +## [1.11.1](https://github.com/opsmill/infrahub-sdk-python/tree/v1.11.1) - 2025-04-28 + +### Changed + +- Set the HFID on related nodes for cardinality many relationships, and add HFID support to the RelationshipManager `add`, `extend` and `remove` methods. + ## [1.11.0](https://github.com/opsmill/infrahub-sdk-python/tree/v1.11.0) - 2025-04-17 ### Deprecated diff --git a/changelog/+hfid_support_cardinality_many_relationships.changed.md b/changelog/+hfid_support_cardinality_many_relationships.changed.md deleted file mode 100644 index 373120d2..00000000 --- a/changelog/+hfid_support_cardinality_many_relationships.changed.md +++ /dev/null @@ -1 +0,0 @@ -Set the HFID on related nodes for cardinality many relationships and add hfid support to the RelationshipManager add, extend and remove methods diff --git a/pyproject.toml b/pyproject.toml index c4b929e7..c3ccc170 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "infrahub-sdk" -version = "1.11.0" +version = "1.11.1" description = "Python Client to interact with Infrahub" authors = ["OpsMill "] readme = "README.md" From 47f3b0f6d099f51edecbe1a806c96e790389df96 Mon Sep 17 00:00:00 2001 From: wvandeun Date: Tue, 29 Apr 2025 15:21:37 +0200 Subject: [PATCH 2/2] add repository dispatch workflow triggering updates in other repos --- .github/workflows/release.yml | 7 +++ .github/workflows/repository-dispatch.yml | 53 +++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 .github/workflows/repository-dispatch.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb2e6b23..008757b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -87,3 +87,10 @@ jobs: secrets: inherit with: version: ${{ github.ref_name }} + + repository-dispatch: + needs: check_release + uses: ./.github/workflows/repository-dispatch.yml + secrets: inherit + with: + version: ${{ needs.check_release.outputs.version }} diff --git a/.github/workflows/repository-dispatch.yml b/.github/workflows/repository-dispatch.yml new file mode 100644 index 00000000..0dc9a213 --- /dev/null +++ b/.github/workflows/repository-dispatch.yml @@ -0,0 +1,53 @@ +--- +# yamllint disable rule:truthy rule:line-length +name: Trigger Infrahub SDK update in other repositories + +on: + workflow_dispatch: + inputs: + runs-on: + description: "The OS to run the job on" + required: false + default: "ubuntu-22.04" + type: string + version: + type: string + required: false + description: The string to extract semver from. + default: '' + workflow_call: + inputs: + runs-on: + description: "The OS to run the job on" + required: false + default: "ubuntu-22.04" + type: string + version: + type: string + required: false + description: The string to extract semver from. + default: '' + +jobs: + repository-dispatch: + runs-on: ubuntu-22.04 + strategy: + matrix: + # Either a literal path, or the name of a secret... + repo: + - "opsmill/infrahub-demo-dc-fabric" + - "INFRAHUB_CUSTOMER1_REPOSITORY" + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.GH_UPDATE_PACKAGE_OTTO }} + # if matrix.repo contains a slash, use it literally; otherwise look up the secret named by matrix.repo + repository: ${{ contains(matrix.repo, '/') && matrix.repo || secrets[matrix.repo] }} + event-type: trigger-infrahub-sdk-python-update + client-payload: | + {"version":"${{ inputs.version }}"}