Skip to content

Remove empty xmlns attributes #15

Remove empty xmlns attributes

Remove empty xmlns attributes #15

Workflow file for this run

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