From 4b7ddc76e0460fa911299811b54024d96a5db417 Mon Sep 17 00:00:00 2001 From: Belle Aerni Date: Wed, 15 Feb 2023 11:52:17 -0800 Subject: [PATCH] Create a workflow to automate CKEditor updates --- .github/workflows/ckeditor_update.yml | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ckeditor_update.yml diff --git a/.github/workflows/ckeditor_update.yml b/.github/workflows/ckeditor_update.yml new file mode 100644 index 000000000..27b83c64e --- /dev/null +++ b/.github/workflows/ckeditor_update.yml @@ -0,0 +1,33 @@ +name: Check for CKEditor updates + +on: + schedule: + - cron: '* 12 * * *' # Runs once per day + +jobs: + update-dependencies: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup NodeJS + uses: actions/setup-node@v3 + with: + node-version: latest + + - name: Install npm-check-updates + run: npm install -g npm-check-updates + + - name: Apply any available updates. + run: ncu -u + working-directory: ./src/modules/Wysiwyg + + - name: Create a Pull Request + uses: peter-evans/create-pull-request@v4 + with: + title: Update CKEditor and Related Dependencies + commit-message: Update CKEditor and Related Dependencies + branch: CKEditor-deps + body: Automated update of all CKEditor related dependencies. CKEditor release notes [here](https://github.com/ckeditor/ckeditor5/releases/latest) + delete-branch: true