From d4b24b22bb59f60d2c3665f2e0ad36dd8412c258 Mon Sep 17 00:00:00 2001 From: Imre Eilertsen Date: Wed, 12 Jun 2024 15:52:22 +0200 Subject: [PATCH] Let's see if this goes catastrophic or not. --- .github/workflows/RegEx text replacement 1 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/RegEx text replacement 1 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