Skip to content

Commit

Permalink
refactor(ci): use git from Nixpkgs
Browse files Browse the repository at this point in the history
Signed-off-by: Sefa Eyeoglu <[email protected]>
  • Loading branch information
Scrumplex committed Feb 3, 2025
1 parent daadab7 commit 42b074a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/nvfetcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable

- name: Set Git user info
run: |
Expand All @@ -25,13 +26,10 @@ jobs:
- name: Update flake inputs
run: |
nix flake update --commit-lock-file
nix develop -c nix flake update --commit-lock-file
- name: Update upstream sources
run: |
# HACK: nvfetcher doesn't delete old extracted files
# See https://github.com/berberman/nvfetcher/issues/111
rm -rfv _sources/*/
nix develop -c nvfetcher --commit-changes
- name: Create PR
Expand Down
1 change: 1 addition & 0 deletions development.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ flake-utils.lib.eachDefaultSystem (
{
devShells.default = pkgs.mkShellNoCC {
packages = [
pkgs.git
pkgs.nvfetcher
pkgs.reuse
];
Expand Down

0 comments on commit 42b074a

Please sign in to comment.