Skip to content

Commit 327c272

Browse files
committed
feat: implement lint info xml action
Signed-off-by: David Lima <[email protected]>
1 parent f4d6d1e commit 327c272

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow is provided via the organization template repository
2+
#
3+
# https://github.com/nextcloud/.github
4+
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
5+
#
6+
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
7+
# SPDX-License-Identifier: MIT
8+
9+
name: Lint info.xml
10+
11+
on: pull_request
12+
13+
permissions:
14+
contents: read
15+
16+
concurrency:
17+
group: lint-info-xml-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
xml-linters:
22+
runs-on: ubuntu-latest
23+
24+
name: info.xml lint
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
28+
with:
29+
persist-credentials: false
30+
31+
- name: Download schema
32+
run: wget https://raw.githubusercontent.com/nextcloud/appstore/master/nextcloudappstore/api/v1/release/info.xsd
33+
34+
- name: Lint info.xml
35+
uses: ChristophWurst/xmllint-action@36f2a302f84f8c83fceea0b9c59e1eb4a616d3c1 # v1.2
36+
with:
37+
xml-file: ./appinfo/info.xml
38+
xml-schema-file: ./info.xsd

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<id>extract</id>
55
<name>Extract</name>
66
<summary>Extract archive from the web interface</summary>
7-
<screenshot>https://raw.githubusercontent.com/PaulLereverend/NextcloudExtract/master/img/extract.png</screenshot>
87
<description><![CDATA[Extract archives.
98
109
* **Supported :**
@@ -37,6 +36,7 @@
3736
<category>tools</category>
3837
<website>https://github.com/PaulLereverend/NextcloudExtract</website>
3938
<bugs>https://github.com/PaulLereverend/NextcloudExtract/issues</bugs>
39+
<screenshot>https://raw.githubusercontent.com/PaulLereverend/NextcloudExtract/master/img/extract.png</screenshot>
4040
<dependencies>
4141
<nextcloud min-version="32" max-version="32"/>
4242
</dependencies>

0 commit comments

Comments
 (0)