2024-04-25 08:03:54 +00:00
|
|
|
# This workflow is provided via the organization template repository
|
|
|
|
#
|
|
|
|
# https://github.com/nextcloud/.github
|
|
|
|
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
|
2024-07-13 08:15:40 +00:00
|
|
|
#
|
|
|
|
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
# SPDX-License-Identifier: MIT
|
2024-04-25 08:03:54 +00:00
|
|
|
|
|
|
|
name: Lint info.xml
|
|
|
|
|
|
|
|
on: pull_request
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: lint-info-xml-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
xml-linters:
|
|
|
|
runs-on: ubuntu-latest-low
|
|
|
|
|
|
|
|
name: info.xml lint
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-07-13 08:15:40 +00:00
|
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2024-04-25 08:03:54 +00:00
|
|
|
|
|
|
|
- name: Download schema
|
|
|
|
run: wget https://raw.githubusercontent.com/nextcloud/appstore/master/nextcloudappstore/api/v1/release/info.xsd
|
|
|
|
|
|
|
|
- name: Lint info.xml
|
|
|
|
uses: ChristophWurst/xmllint-action@36f2a302f84f8c83fceea0b9c59e1eb4a616d3c1 # v1.2
|
|
|
|
with:
|
|
|
|
xml-file: ./appinfo/info.xml
|
|
|
|
xml-schema-file: ./info.xsd
|