Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/update-framework.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Update Joplin Plugin Framework

on:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
update-framework:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
Comment thread
Aaravanand00 marked this conversation as resolved.
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install generator-joplin globally
run: npm install -g generator-joplin yo

- name: Run framework update
run: yo joplin --update

- name: Install dependencies
run: npm install --legacy-peer-deps

- name: Check for changes
id: changes
run: |
if git diff --quiet; then
echo "has_changes=false" >> $GITHUB_OUTPUT
else
echo "has_changes=true" >> $GITHUB_OUTPUT
fi

- name: Create Pull Request
if: steps.changes.outputs.has_changes == 'true'
uses: peter-evans/create-pull-request@v6
with:
commit-message: 'chore: monthly joplin plugin framework update'
title: 'chore: update joplin plugin framework (automated)'
body: |
This is an automated pull request to update the Joplin plugin framework.

Please review the changes and ensure:
- All tests pass
- Build succeeds
- No breaking changes introduced
branch: chore/update-plugin-framework
Comment thread
Aaravanand00 marked this conversation as resolved.
branch-suffix: timestamp
delete-branch: true
labels: dependencies, automated
Loading