-
-
Notifications
You must be signed in to change notification settings - Fork 40
65 lines (60 loc) · 2.01 KB
/
Copy pathupdate-framework.yml
File metadata and controls
65 lines (60 loc) · 2.01 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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
uses: actions/setup-node@v4
with:
node-version: 24
- name: Install generator-joplin globally
run: npm install -g generator-joplin yo
- name: Run framework update
run: yo joplin --update --silent --force --skip-install
- name: New tsconfig.json content
id: new-tsconfig-json
run: |
{
echo 'content<<EOF'
sed -e '$a\' tsconfig.json
echo EOF
} >> "$GITHUB_OUTPUT"
- name: Revert tsconfig.json
run: |
git checkout -- tsconfig.json
# Just tsconfig.json changes would not be important anyways
- 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: routine joplin plugin framework update'
title: 'chore: routine joplin plugin framework update'
body: |
This is an automated pull request to update the joplin plugin framework.
## Some files were not updated from the framework
### tsconfig.json
```json
${{ steps.new-tsconfig-json.outputs.content }}
```
branch: chore/update-plugin-framework
branch-suffix: timestamp
committer: Albus <bot@nishantwrp.com>
author: Albus <bot@nishantwrp.com>
delete-branch: true