-
Notifications
You must be signed in to change notification settings - Fork 195
GitHub Action Check For Duplicate Image Names
Chloe Lin [SSW] edited this page Apr 9, 2024
·
2 revisions
"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
- 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
-
- How to Create Rules
- How to Edit Rules
- How to Rename Rules
- How to Add and Edit Categories and Top Categories
- How to Rename Categories
- Check Images
- Check For Duplicate Image Names
- Check Extension Case
- Check Folder Name
- Manage Stale PRs
- T‐shirt Size the PR
- Trigger Rules Build
- Validate Frontmatter
- Validate Frontmatter in All Rules
- Validate Markdown