mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-03 23:41:51 +00:00
* Generate many Ansible outputs with 'antsibull-docs ansible-output'. * Generate YAML output as well. * Check ansible-output from CI instead of updating. * Use reset-previous-blocks meta action; generate more code blocks. * Use set-template meta action. * Run ansible-output in CI if anything in docs/ is changed. * Remove unnecessary allow_duplicate_keys.
34 lines
770 B
YAML
34 lines
770 B
YAML
---
|
|
# Copyright (c) Ansible Project
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
name: nox
|
|
'on':
|
|
push:
|
|
branches:
|
|
- main
|
|
- stable-*
|
|
paths:
|
|
- docs/**
|
|
pull_request:
|
|
paths:
|
|
- docs/**
|
|
# Run CI once per day (at 08:00 UTC)
|
|
schedule:
|
|
- cron: '0 8 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
nox:
|
|
runs-on: ubuntu-latest
|
|
name: "Validate generated Ansible output"
|
|
steps:
|
|
- name: Check out collection
|
|
uses: actions/checkout@v5
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run nox
|
|
uses: ansible-community/antsibull-nox@main
|
|
with:
|
|
sessions: ansible-output
|