Skip to content

feat: add antora_build script #309

feat: add antora_build script

feat: add antora_build script #309

Workflow file for this run

---
# SPDX-FileCopyrightText: © 2024 Sebastian Davids <[email protected]>
# SPDX-License-Identifier: Apache-2.0
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
name: ci
on: # yamllint disable-line rule:truthy
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
lint:
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Checkout
# https://github.com/actions/checkout/releases
uses: actions/[email protected]
- name: Classify changes
# https://github.com/dorny/paths-filter/releases
uses: dorny/[email protected]
id: changes
with:
filters: |
sh:
- '**.sh'
- 'zfunc/**'
yaml:
- '**.yaml'
- if: steps.changes.outputs.sh == 'true'
name: Lint shell scripts
run: |
find . -type f -name '*.sh' -print0 | xargs -0L1 shellcheck
find zfunc -type f -print0 | xargs -0L1 shellcheck
- if: steps.changes.outputs.yaml == 'true'
name: Lint YAML files
run: yamllint --strict .