diff --git a/.github/workflows/RegEx text replacement 1 b/.github/workflows/RegEx text replacement 1 new file mode 100644 index 000000000..115d6529f --- /dev/null +++ b/.github/workflows/RegEx text replacement 1 @@ -0,0 +1,19 @@ +name: RegEx text replacement (https://github.com/marketplace/actions/find-and-replace) +on: [push, pull_request, discusson_comment] +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v2 + - name: Find and Replace + uses: jacobtomlinson/gha-find-replace@v3 + with: + find: "(:has-text\(/([a-zA-Z0-9øØåÅñ_.;,|/{}* !?"'-]|\\){0,}([a-rt-zA-RæÆøØåÅT-Z0-9]))\3([a-zA-Z0-9æÆøØåÅñ_.;,|/{}* !"'-]|\\)" + replace: "\1{2}\4" + regex: true + include: "**/a.txt" + - name: Push changes + - title: '[Bot] RegEx optimising' + uses: stefanzweifel/git-auto-commit-action@v4