Merge branch 'main' of https://git.procopius.dk/plasmagoat/homelab
Some checks failed
Test / tests (push) Has been cancelled
Some checks failed
Test / tests (push) Has been cancelled
This commit is contained in:
commit
7145d0a8d2
2 changed files with 41 additions and 3 deletions
38
.forgejo/workflows/update-dependencies.yml
Normal file
38
.forgejo/workflows/update-dependencies.yml
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
|
||||||
|
name: update-dependencies
|
||||||
|
on:
|
||||||
|
workflow_dispatch: # allows manual triggering
|
||||||
|
schedule:
|
||||||
|
- cron: '0 6 * * *'
|
||||||
|
jobs:
|
||||||
|
update-dependencies:
|
||||||
|
runs-on: nixos-latest
|
||||||
|
steps:
|
||||||
|
- run: nix-env -iA nixpkgs.nodejs
|
||||||
|
- run: nix-env -iA nixpkgs.curl
|
||||||
|
- run: nix-env -iA nixpkgs.jq
|
||||||
|
|
||||||
|
- name: Enable experimental features
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.config/nix
|
||||||
|
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
|
||||||
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: nix flake update
|
||||||
|
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: https://github.com/maxking/forgejo-create-pr@main
|
||||||
|
with:
|
||||||
|
# required
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# optional
|
||||||
|
base: 'main'
|
||||||
|
add-paths: '.'
|
||||||
|
commit-message: 'feat: automated changes'
|
||||||
|
pr-title: 'feat: new automated changes'
|
||||||
|
pr-body: 'This PR contains automated changes'
|
||||||
|
pr-condition-cmd: 'git status --porcelain'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#https://forrestjacobs.com/keeping-nixos-systems-up-to-date-with-github-actions/
|
||||||
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -92,11 +92,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1751801514,
|
"lastModified": 1752059051,
|
||||||
"narHash": "sha256-Ve3ZTzcXEGt4IoXLsWqk35w3w4cH5G1MJb+gLdj/jtE=",
|
"narHash": "sha256-Gp4Seks9XbIv4PGoQB8d1fcsK7r3GjVGS8U5BVaCrQg=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "4e3e6431fd60d653bb7f4fa5487e2c500d50f49f",
|
"rev": "5092a4ad88d4d85a408aaeba2eecb820f71bdf87",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue