diff --git a/.github/workflows/check-flake.yml b/.github/workflows/check-flake.yml index aeedc194..11bfd385 100644 --- a/.github/workflows/check-flake.yml +++ b/.github/workflows/check-flake.yml @@ -1,8 +1,8 @@ name: Check Nix flake on: - pull_request_target: + pull_request: paths: - - '*.nix' + - '**.nix' - flake.lock push: branches: diff --git a/.github/workflows/update-flake-dependencies.yml b/.github/workflows/update-flake-dependencies.yml index 85fad658..44e0e550 100644 --- a/.github/workflows/update-flake-dependencies.yml +++ b/.github/workflows/update-flake-dependencies.yml @@ -15,11 +15,14 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@main - name: update flake.lock run: nix flake update + - name: Define Unique COMMIT_BRANCH by Timestamp + run: | + TIMESTAMP=$(date +'%Y-%m-%d-%H%M%S') + echo "COMMIT_BRANCH=automation/update-flake-dependencies-$TIMESTAMP" >> $GITHUB_ENV - name: Create signed commit with flake.lock changes env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} FILE_TO_COMMIT: flake.lock - COMMIT_BRANCH: automation/update-flake-dependencies COMMIT_MESSAGE: "chore(nix): Update Flake dependencies" run: | # make sure something actually changed first, if not, no updates required diff --git a/flake.lock b/flake.lock index 87024aec..2213a508 100644 --- a/flake.lock +++ b/flake.lock @@ -5,11 +5,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1710146030, - "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", - "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1716358718, - "narHash": "sha256-NQbegJb2ZZnAqp2EJhWwTf6DrZXSpA6xZCEq+RGV1r0=", + "lastModified": 1754122398, + "narHash": "sha256-CyIrZ68gVLSZGa2ERK7zc2dGabvWp2A8PM6PII9M7gI=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "3f316d2a50699a78afe5e77ca486ad553169061e", + "rev": "c02d05bcf73fb496c604798c2268ed424a09e73e", "type": "github" }, "original": {