This repository was archived by the owner on Sep 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +38
-8
lines changed Expand file tree Collapse file tree 2 files changed +38
-8
lines changed Original file line number Diff line number Diff line change
1
+ name : Update dprint plugins
2
+ on :
3
+ push :
4
+ branches : ['main']
5
+ paths :
6
+ - ' .github/workflows/dprint-update-plugin.yml'
7
+ schedule :
8
+ - cron : ' 0 17 * * *'
9
+ # Allows you to run this workflow manually from the Actions tab
10
+ workflow_dispatch :
11
+
12
+ permissions :
13
+ contents : write
14
+ pull-requests : write
15
+
16
+ # Allow one concurrent updates
17
+ concurrency :
18
+ group : ' dprint'
19
+ cancel-in-progress : true
20
+
21
+ jobs :
22
+ update :
23
+ runs-on : ubuntu-latest
24
+ timeout-minutes : 15
25
+ steps :
26
+ - id : update-dprint-plugins
27
+ uses : kachick/action-update-dprint-plugins@v1-beta
28
+ with :
29
+ base-branch : ' main'
30
+ github-token : ' ${{ secrets.GITHUB_TOKEN }}'
31
+ # Enable `Allow auto-merge` in your repository settings if you need following steps
32
+ - name : Merge sent PR
33
+ # Merge if `dprint fmt` does not make any diff even after updating plugins
34
+ if : ${{ steps.update-dprint-plugins.outputs.pr_url != '' && steps.update-dprint-plugins.outputs.fmt == 'false' }}
35
+ run : gh pr merge --auto --squash --delete-branch "${{ steps.update-dprint-plugins.outputs.pr_url }}"
36
+ env :
37
+ GITHUB_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://docs.renovatebot.com/renovate-schema.json" ,
3
3
"dependencyDashboard" : true ,
4
- "extends" : [
5
- " github>kachick/renovate-config-dprint"
6
- ],
7
4
"labels" : [" dependencies" , " renovate" ],
8
- "enabledManagers" : [" nix" , " regex " ],
5
+ "enabledManagers" : [" nix" ],
9
6
"nix" : {
10
7
"enabled" : true
11
8
},
12
9
"packageRules" : [
13
10
{
14
11
"extends" : [" packages:linters" , " schedule:weekly" ]
15
- },
16
- {
17
- "extends" : [" schedule:monthly" ],
18
- "matchPackagePrefixes" : [" dprint" ]
19
12
}
20
13
]
21
14
}
You can’t perform that action at this time.
0 commit comments