Remove empty xmlns attributes #15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Remove empty xmlns attributes | |
| on: | |
| schedule: | |
| - cron: '0 2 * * *' # runs every day at 2am UTC | |
| workflow_dispatch: # keeps the manual trigger too | |
| jobs: | |
| fix-xmlns: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Strip xmlns="" | |
| run: | | |
| find . -name "*.xml" -not -path "./.git/*" \ | |
| -path "*/data/*" | \ | |
| xargs grep -l 'xmlns=""' 2>/dev/null | \ | |
| xargs sed -i 's/ xmlns=""//g' | |
| - name: Open Pull Request | |
| uses: peter-evans/create-pull-request@v6 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: "chore: strip empty xmlns artifacts" | |
| branch: fix/xmlns-cleanup | |
| title: "Strip empty xmlns=\"\" attributes" | |
| body: | | |
| Automated cleanup of empty `xmlns=""` attributes | |
| injected by eXist-db serializer. | |
| Please review the file diff before merging. | |
| labels: automated |