update lock and add auto update lock

This commit is contained in:
2026-07-29 17:41:43 +08:00
parent 0bdaaa0c31
commit 72d09590e9
2 changed files with 47 additions and 6 deletions
+41
View File
@@ -0,0 +1,41 @@
name: Update flake lock
on:
schedule:
- cron: "0 0 * * 1"
workflow_dispatch:
permissions:
contents: write
concurrency:
group: update-flake-lock
cancel-in-progress: false
jobs:
update:
runs-on: ubuntu-24.04
steps:
- name: Check out source
uses: actions/checkout@v6
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ github.token }}
- name: Update lock file
run: nix flake update
- name: Commit and push changes
run: |
set -euo pipefail
if git diff --quiet -- flake.lock; then
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add flake.lock
git commit -m "flake: update lock file"
git push
Generated
+6 -6
View File
@@ -44,7 +44,7 @@
"geoip": {
"flake": false,
"locked": {
"narHash": "sha256-ov9zEg2tBCpxru5uNzMs6Npaawz0CXthUaBDQIBcOqs=",
"narHash": "sha256-A86jjHB1GmIqxlczeX5b81HNi7O9WXmsabSwMxomugQ=",
"type": "file",
"url": "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.dat"
},
@@ -56,7 +56,7 @@
"geosite": {
"flake": false,
"locked": {
"narHash": "sha256-PAA0zUq0to9HpJ7+sXXcCm6GgvuZvci5HVoH/u41m0k=",
"narHash": "sha256-kQjuYfZv7YaBqnbOG09Qsq3KnVIKv+LxStQA9X/Fvz8=",
"type": "file",
"url": "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat"
},
@@ -68,7 +68,7 @@
"metadb": {
"flake": false,
"locked": {
"narHash": "sha256-UVm3qjQmgmDSzv6zXPgVXfEQsHwDzl3yTWrRXzh9hrs=",
"narHash": "sha256-C40bKY8BbjunMhQo2636RVbZjl2CnG9jNJIMfdoFpEk=",
"type": "file",
"url": "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.metadb"
},
@@ -79,11 +79,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1784796856,
"narHash": "sha256-wWFrV5/Qbm+lyt5x20E/bSbfJiGKMo4RCxZV8cl/WZI=",
"lastModified": 1785090369,
"narHash": "sha256-m0pDuRJG7EDo9ri+4Ksu83VsI+PlxNC9lNBfydejce4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e2587caef70cea85dd97d7daab492899902dbf5d",
"rev": "624af665418d3c65d544145b4d34ad696439570e",
"type": "github"
},
"original": {