mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	Merge pull request #607 from TriliumNext/add-renovate
Add renovate GitHub Action and JSON config
This commit is contained in:
		
						commit
						c962a94e29
					
				
							
								
								
									
										25
									
								
								.github/workflows/renovate.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/renovate.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,25 @@
 | 
			
		||||
name: Renovate
 | 
			
		||||
on:
 | 
			
		||||
  schedule:
 | 
			
		||||
    # Run every day at 1 AM UTC (before the nightly build at 2 AM UTC)
 | 
			
		||||
    - cron: '0 1 * * *'
 | 
			
		||||
  # Allow manual triggering
 | 
			
		||||
  workflow_dispatch:
 | 
			
		||||
 | 
			
		||||
permissions:
 | 
			
		||||
  contents: write
 | 
			
		||||
  pull-requests: write
 | 
			
		||||
  issues: write
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  renovate:
 | 
			
		||||
    name: Run Renovate
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v4
 | 
			
		||||
      
 | 
			
		||||
      - name: Self-hosted Renovate
 | 
			
		||||
        uses: renovatebot/github-action@v41.0.3
 | 
			
		||||
        with:
 | 
			
		||||
          configurationFile: renovate.json
 | 
			
		||||
          token: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
							
								
								
									
										18
									
								
								renovate.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								renovate.json
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,18 @@
 | 
			
		||||
{
 | 
			
		||||
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
 | 
			
		||||
  "extends": [
 | 
			
		||||
    "config:base"
 | 
			
		||||
  ],
 | 
			
		||||
  "schedule": ["before 3am"],
 | 
			
		||||
  "packageRules": [
 | 
			
		||||
    {
 | 
			
		||||
      "matchUpdateTypes": ["minor", "patch"],
 | 
			
		||||
      "matchCurrentVersion": "!/^0/",
 | 
			
		||||
      "automerge": false
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "labels": ["dependencies", "renovate"],
 | 
			
		||||
  "prHourlyLimit": 0,
 | 
			
		||||
  "prConcurrentLimit": 0,
 | 
			
		||||
  "branchConcurrentLimit": 0
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user