Skip to content

Conversation

@felixfontein
Copy link
Collaborator

@felixfontein felixfontein commented Jan 9, 2022

This extends the ansible-docs-build-diff action to delete .js and .inv files before doing the diff. Since this is after uploading the artefact, it shouldn'd break anything :)

I'm resuing the same branch name as before so I don't have to change community.docker's main branch ;) I've tested this in ansible-collections/community.docker#280 as well; as you can see the diff there is now only the modified HTML file.

Fixes #2.

This cannot be merged yet since one commit needs to be reverted (the one changing the workflow). I'll do that after review.

Copy link
Collaborator

@briantist briantist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great (one tiny nit)! thanks again for the contribution, and for testing it.
Will not merge yet, to wait for the shared workflow revert.

@briantist
Copy link
Collaborator

I am thinking we could let this close #2, it solves the issue for the time being, and we can reopen or resubmit later if we think we need more on this front, options could be:

  • converting to git repos
  • taking the exclusion globs as an input (whether we go git or continue with deletion)

thoughts?

felixfontein and others added 2 commits January 10, 2022 06:41
Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com>
@felixfontein felixfontein changed the title [WIP] Ignore .js and .inv files for diff Ignore .js and .inv files for diff Jan 10, 2022
@felixfontein
Copy link
Collaborator Author

Sounds good. I've adjustd the text.

@felixfontein felixfontein merged commit 40209ac into ansible-community:main Jan 10, 2022
@felixfontein felixfontein deleted the fix-merge branch January 10, 2022 05:44
@felixfontein
Copy link
Collaborator Author

@briantist thanks for reviewing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exclude irrelevant files from the diff output

2 participants