This commit is contained in:
parent
6caeab376c
commit
745a2c01de
3 changed files with 21 additions and 27 deletions
26
.github/workflows/update.yaml
vendored
26
.github/workflows/update.yaml
vendored
|
@ -1,26 +0,0 @@
|
|||
name: update-flake-lock
|
||||
on:
|
||||
workflow_dispatch: # allows manual triggering
|
||||
schedule:
|
||||
- cron: "3 18 * * *"
|
||||
jobs:
|
||||
lockfile:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: sh <(curl -L https://nixos.org/nix/install) --daemon
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: update flake lock
|
||||
run: nix flake update
|
||||
- name: run update script
|
||||
run: |
|
||||
cd packages
|
||||
yes "" | ./update.sh
|
||||
- name: run nix fmt
|
||||
run: nix fmt
|
||||
- name: Commit and push
|
||||
uses: https://github.com/peter-evans/create-pull-request@v7
|
||||
with:
|
||||
commit-message: "Automatic Update"
|
||||
title: Run automatic update
|
||||
author: GitHub <noreply@github.com>
|
|
@ -17,7 +17,11 @@
|
|||
nix.enabled = true;
|
||||
lockFileMaintenance.enabled = true;
|
||||
osvVulnerabilityAlerts = true;
|
||||
allowedPostUpgradeCommands = ["^cargo2nix -o$" "^alejandra \\.$"];
|
||||
allowedPostUpgradeCommands = [
|
||||
"^cargo2nix -o$"
|
||||
"^alejandra \\.$"
|
||||
"^cd packages; yes '' | \\./update.sh$"
|
||||
];
|
||||
allowCustomCrateRegistries = true;
|
||||
};
|
||||
credentials = {
|
||||
|
|
16
renovate.json
Normal file
16
renovate.json
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"extends": [
|
||||
"config:best-practices",
|
||||
"schedule:automergeDaily",
|
||||
"schedule:daily"
|
||||
],
|
||||
"postUpgradeTasks": {
|
||||
"commands": [
|
||||
"cd packages; yes '' | ./update.sh",
|
||||
"alejandra ."
|
||||
],
|
||||
"fileFilters": [
|
||||
"packages/**/*"
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue