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 }}"} 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/docs/docs/python-sdk/topics/object_file.mdx b/docs/docs/python-sdk/topics/object_file.mdx index a383df56..fd747bfa 100644 --- a/docs/docs/python-sdk/topics/object_file.mdx +++ b/docs/docs/python-sdk/topics/object_file.mdx @@ -27,10 +27,10 @@ Object files are meant to be used in an idempotent way and as such they work bet ## Load Object files into Infrahub -Object files can be loaded into Infrahub using the `infrahub object load` command. +Object files can be loaded into Infrahub using the `infrahubctl object load` command. ```bash -infrahub object load +infrahubctl object load ``` Multiple object files can be loaded at once by specifying the path to multiple files or by specifying a directory. @@ -40,10 +40,10 @@ Also, if some objects present in different files are identical and dependent on ### Validate the format of object files -The object file can be validated using the `infrahub object validate` command. +The object file can be validated using the `infrahubctl object validate` command. ```bash -infrahub object validate +infrahubctl object validate ``` ## Object file format @@ -185,7 +185,7 @@ Metadata support is planned for future releases. Currently, the Object file does 1. **Objects not being created**: Ensure that the YAML syntax is correct and that the file follows the required format. 2. **Dependency errors**: When objects depend on each other, load them in the correct order (dependencies first). -3. **Validation errors**: Use the `infrahub object validate` command to check for syntax errors before loading. +3. **Validation errors**: Use the `infrahubctl object validate` command to check for syntax errors before loading. ### Best practices 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"