Add a step like this to your workflow:
- uses: metro420yt/class-update@v1-rc
with:
# folder that has your theme files
# Default: themes
folder: 'src'
# file extension to target
# Default: css
ext: scss
# url or relative path to a file containing an old&new pair of class names
# Default: https://raw.githubusercontent.com/SyndiShanX/Update-Classes/main/Changes.txt
diff: './changes.txt'
The action provides these outputs:
totalChanges
: the total number of classes that were replaced
For more info on how to use outputs, see "Context and expression syntax".
- inspired by ClassUpdate from Saltssaumure
- README.md based on EndBug/add-and-commit