GitHub Action Check For Duplicate Image Names - SSWConsulting/SSW.Rules.Content GitHub Wiki
Check For Duplicate Image Names
"Check For Duplicate Image Names" is designed to fix the rendering issue that occurred with Gatsby. If two images share the same name but are used in different rules, one of the rules will display the incorrect image.
Therefore, this action has been set up to run weekly or manually in order to:
- Check for duplicate image names in
Rules.Content - Rename them if any are found
- Update the image path in the relevant
rule.md - Create a pull request if changes are made
Running the action
- Go to SSWConsulting | SSW.Rules.Content | Actions | Check For Duplicate Image Names
- Press Run workflow | Run workflow ensuring the branch is set to "main"
- Wait for the task to finish
- Once it's finished, this is what will happen:
-
If there are changes made, a pull request called "Auto Rename Duplicate Images" will be created
Figure: Example PR on https://github.com/SSWConsulting/SSW.Rules.Content/pull/8125
-
If there are no changes, no pull request will be created and the action exits silently
-