diff --git a/chocomilk.yml b/chocomilk.yml index ae94996..82e7a97 100644 --- a/chocomilk.yml +++ b/chocomilk.yml @@ -38,7 +38,7 @@ community.general.xml: path: "{{ register_nuspec_file.files[0].path }}" namespaces: - ns: "http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd" + ns: "https://raw.githubusercontent.com/NuGet/NuGet.Client/dev/src/NuGet.Core/NuGet.Packaging/compiler/resources/nuspec.xsd" xpath: /ns:package/ns:metadata/ns:id content: text register: register_package_id @@ -47,7 +47,7 @@ xml: path: "{{ register_nuspec_file.files[0].path }}" namespaces: - ns: "http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd" + ns: "https://raw.githubusercontent.com/NuGet/NuGet.Client/dev/src/NuGet.Core/NuGet.Packaging/compiler/resources/nuspec.xsd" xpath: /ns:package/ns:metadata/ns:title content: text register: register_package_title @@ -58,8 +58,8 @@ path_nuspec: "{{ register_nuspec_file.files[0].path }}" path_chocolateyinstall: "{{ register_chocolateyinstall_path.files[0].path }}" path_readme: "{{ register_readme_path.files[0].path }}" - package_id: '{{ register_package_id.matches[0]["{http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd}id"] }}' - package_title: '{{ register_package_title.matches[0]["{http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd}title"] }}' + package_id: '{{ register_package_id.matches[0]["{https://raw.githubusercontent.com/NuGet/NuGet.Client/dev/src/NuGet.Core/NuGet.Packaging/compiler/resources/nuspec.xsd}id"] }}' + package_title: '{{ register_package_title.matches[0]["{https://raw.githubusercontent.com/NuGet/NuGet.Client/dev/src/NuGet.Core/NuGet.Packaging/compiler/resources/nuspec.xsd}title"] }}' tasks: # Check new Version diff --git a/package/nuspec.yml b/package/nuspec.yml index 8e5cb59..22b3290 100644 --- a/package/nuspec.yml +++ b/package/nuspec.yml @@ -3,7 +3,7 @@ community.general.xml: path: "{{ path_nuspec }}" namespaces: - ns: "http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd" + ns: "https://raw.githubusercontent.com/NuGet/NuGet.Client/dev/src/NuGet.Core/NuGet.Packaging/compiler/resources/nuspec.xsd" xpath: /ns:package/ns:metadata/ns:version value: "{{ available_version }}" @@ -15,7 +15,7 @@ community.general.xml: path: "{{ path_nuspec }}" namespaces: - ns: "http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd" + ns: "https://raw.githubusercontent.com/NuGet/NuGet.Client/dev/src/NuGet.Core/NuGet.Packaging/compiler/resources/nuspec.xsd" xpath: /ns:package/ns:metadata/ns:description value: | {% for value in content %} diff --git a/package/version.yml b/package/version.yml index 974dd60..ed25076 100644 --- a/package/version.yml +++ b/package/version.yml @@ -11,7 +11,7 @@ community.general.xml: path: "{{ path_nuspec }}" namespaces: - ns: "http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd" + ns: "https://raw.githubusercontent.com/NuGet/NuGet.Client/dev/src/NuGet.Core/NuGet.Packaging/compiler/resources/nuspec.xsd" xpath: /ns:package/ns:metadata/ns:version content: text register: register_nuspec @@ -19,7 +19,7 @@ - name: "{{ package_id }} : search version" set_fact: available_version: "{{ versions_prefix | default() }}{{ version | regex_replace('[-|_]', '.') }}" - current_version: '{{ register_nuspec.matches[0]["{http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd}version"] }}' + current_version: '{{ register_nuspec.matches[0]["{https://raw.githubusercontent.com/NuGet/NuGet.Client/dev/src/NuGet.Core/NuGet.Packaging/compiler/resources/nuspec.xsd}version"] }}' - block: - name: "{{ package_id }} : check new version"