Skip to content

Commit

Permalink
Revert "fix: updated nespec schema link"
Browse files Browse the repository at this point in the history
This reverts commit cf973b9.
  • Loading branch information
kpestalozzi committed Mar 20, 2024
1 parent cf973b9 commit 75244ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions chocomilk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
community.general.xml:
path: "{{ register_nuspec_file.files[0].path }}"
namespaces:
ns: "https://raw.githubusercontent.com/NuGet/NuGet.Client/dev/src/NuGet.Core/NuGet.Packaging/compiler/resources/nuspec.xsd"
ns: "http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"
xpath: /ns:package/ns:metadata/ns:id
content: text
register: register_package_id
Expand All @@ -47,7 +47,7 @@
xml:
path: "{{ register_nuspec_file.files[0].path }}"
namespaces:
ns: "https://raw.githubusercontent.com/NuGet/NuGet.Client/dev/src/NuGet.Core/NuGet.Packaging/compiler/resources/nuspec.xsd"
ns: "http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"
xpath: /ns:package/ns:metadata/ns:title
content: text
register: register_package_title
Expand All @@ -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]["{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"] }}'
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"] }}'

tasks:
# Check new Version
Expand Down
4 changes: 2 additions & 2 deletions package/nuspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
community.general.xml:
path: "{{ path_nuspec }}"
namespaces:
ns: "https://raw.githubusercontent.com/NuGet/NuGet.Client/dev/src/NuGet.Core/NuGet.Packaging/compiler/resources/nuspec.xsd"
ns: "http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"
xpath: /ns:package/ns:metadata/ns:version
value: "{{ available_version }}"

Expand All @@ -15,7 +15,7 @@
community.general.xml:
path: "{{ path_nuspec }}"
namespaces:
ns: "https://raw.githubusercontent.com/NuGet/NuGet.Client/dev/src/NuGet.Core/NuGet.Packaging/compiler/resources/nuspec.xsd"
ns: "http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"
xpath: /ns:package/ns:metadata/ns:description
value: |
{% for value in content %}
Expand Down
4 changes: 2 additions & 2 deletions package/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
community.general.xml:
path: "{{ path_nuspec }}"
namespaces:
ns: "https://raw.githubusercontent.com/NuGet/NuGet.Client/dev/src/NuGet.Core/NuGet.Packaging/compiler/resources/nuspec.xsd"
ns: "http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"
xpath: /ns:package/ns:metadata/ns:version
content: text
register: register_nuspec

- name: "{{ package_id }} : search version"
set_fact:
available_version: "{{ versions_prefix | default() }}{{ version | regex_replace('[-|_]', '.') }}"
current_version: '{{ register_nuspec.matches[0]["{https://raw.githubusercontent.com/NuGet/NuGet.Client/dev/src/NuGet.Core/NuGet.Packaging/compiler/resources/nuspec.xsd}version"] }}'
current_version: '{{ register_nuspec.matches[0]["{http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd}version"] }}'

- block:
- name: "{{ package_id }} : check new version"
Expand Down

0 comments on commit 75244ab

Please sign in to comment.