Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit 0e91e94

Browse files
committed
1 parent 6ed966b commit 0e91e94

File tree

2 files changed

+38
-8
lines changed

2 files changed

+38
-8
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 }}'

renovate.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"dependencyDashboard": true,
4-
"extends": [
5-
"github>kachick/renovate-config-dprint"
6-
],
74
"labels": ["dependencies", "renovate"],
8-
"enabledManagers": ["nix", "regex"],
5+
"enabledManagers": ["nix"],
96
"nix": {
107
"enabled": true
118
},
129
"packageRules": [
1310
{
1411
"extends": ["packages:linters", "schedule:weekly"]
15-
},
16-
{
17-
"extends": ["schedule:monthly"],
18-
"matchPackagePrefixes": ["dprint"]
1912
}
2013
]
2114
}

0 commit comments

Comments
 (0)