Skip to content

GitHub Action Check Images

Brook Jeynes [SSW] edited this page Jul 4, 2023 · 3 revisions

Check Images

"Check Images" is a GitHub Action designed to scan for all unused images within a rule. Over time, certain rules have images removed or renamed leading to a rule to accumulate a large number of unused or redundant images. This action helps identify and remove these unused images.

Scanning all rules

To scan all rules

  1. Go to SSWConsulting | SSW.Rules.Content | Actions | Check-Images
  2. Press Run workflow | Run workflow ensuring the branch is set to "main" Screenshot 2023-07-04 at 14 12 52
  3. Wait for scan to finish Screenshot 2023-07-04 at 14 14 48
  4. Once finished, view the GitHub Action output via the "Summary" tab Screenshot 2023-07-04 at 14 35 38

Scanning rules in PRs

The action is automatically run on all PRs. To view the outcome:

  1. From the PR, navigate to Checks | Check-Images Screenshot 2023-07-04 at 14 16 39 Screenshot 2023-07-04 at 14 17 52
  2. Once finished, view the GitHub Action output via the "Summary" tab Screenshot 2023-07-04 at 14 18 55
Clone this wiki locally