diff --git a/.forgejo/workflows/update-dependencies.yml b/.forgejo/workflows/update-dependencies.yml new file mode 100644 index 0000000..9a08c62 --- /dev/null +++ b/.forgejo/workflows/update-dependencies.yml @@ -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/ \ No newline at end of file diff --git a/flake.lock b/flake.lock index 19b6da5..a9c4ec8 100644 --- a/flake.lock +++ b/flake.lock @@ -92,11 +92,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1751801514, - "narHash": "sha256-Ve3ZTzcXEGt4IoXLsWqk35w3w4cH5G1MJb+gLdj/jtE=", + "lastModified": 1752059051, + "narHash": "sha256-Gp4Seks9XbIv4PGoQB8d1fcsK7r3GjVGS8U5BVaCrQg=", "owner": "nixos", "repo": "nixpkgs", - "rev": "4e3e6431fd60d653bb7f4fa5487e2c500d50f49f", + "rev": "5092a4ad88d4d85a408aaeba2eecb820f71bdf87", "type": "github" }, "original": {