update-flack-lock action -> renovate

This commit is contained in:
adisbladis 2023-11-04 12:44:04 +13:00
parent cb9c7cac6b
commit a64814310a
3 changed files with 17 additions and 30 deletions

View file

@ -1,23 +0,0 @@
name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * 1,4' # Run twice a week
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v20
with:
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
pr-labels: | # Labels to be set on the PR
merge-queue

View file

@ -1,13 +1,8 @@
queue_rules: queue_rules:
- name: default - name: default
merge_conditions: merge_conditions:
- check-success=Evaluate flake.nix - author=renovate[bot]
- check-success=check treefmt [x86_64-linux] - check-success=collect
- check-success=devShell default [x86_64-linux]
- check-success=package default [x86_64-linux]
- check-success=package nix-eval-jobs [x86_64-linux]
- check-success=tests (macos-latest)
- check-success=tests (ubuntu-latest)
defaults: defaults:
actions: actions:
queue: queue:

15
renovate.json Normal file
View file

@ -0,0 +1,15 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"lockFileMaintenance": {
"enabled": true,
"extends": [
"schedule:weekly"
]
},
"nix": {
"enabled": true
}
}