Skip to content

proposal: add configuration option to ignore paths when checking for changesΒ #1121

Open
@rafalkrupinski

Description

@rafalkrupinski

Checklist

  • I am using the latest version of this action.
  • I have read the latest README and followed the instructions.
  • I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.

Describe your proposal

I'm using sphinx to generate docs pages and every time it runs it generates sitemap.xml.gz with timestamps inside, which makes the file different each time, and in turn I get a fresh commit even if that's the only change.

Please add an option to ignore paths from diff so such changes could be skipped from being committed to git.

Describe the solution you'd like

Add new config option such as

with:
  ignore_for_diff:
  - path1
  - path2

if no other file is changed than one listed under this key, no difference is detected and no new commit is made (unless allow_empty_commit is enabled)

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions