-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (28 loc) · 994 Bytes
/
fix-xmlns.yml
File metadata and controls
33 lines (28 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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