Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion actions/ansible-docs-build-diff/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
name: Calculate diff output between two Ansible docs builds
description: Compare two builds of docs (HTML files) and produce diff output.
description: |
Compare two builds of docs (HTML files) and produce diff output.

Please note that the input directories might be modified, as some files will be deleted.
inputs:
build-html-a:
description: The path to the HTML files (set A).
Expand Down Expand Up @@ -75,6 +78,17 @@ outputs:
runs:
using: composite
steps:
- name: Delete files that should not be included in the diff
id: delete
shell: bash
run: |
echo "::group::Deleting files from ${{ inputs.build-html-a }}"
find "${{ inputs.build-html-a }}" \( -name '*.js' -or -name '*.inv' \) -delete -print
echo "::endgroup::"
echo "::group::Deleting files from ${{ inputs.build-html-b }}"
find "${{ inputs.build-html-b }}" \( -name '*.js' -or -name '*.inv' \) -delete -print
echo "::endgroup::"

- name: Create diff
id: diff
uses: actions/github-script@v5
Expand Down