Skip to content

Commit

Permalink
Add reusable workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pedorich-n committed Jan 16, 2024
1 parent 651b41f commit db822e9
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
6 changes: 6 additions & 0 deletions .github/workflows/flake-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Nix Flake Check
on: push

jobs:
nix-flake-check:
uses: pedorich-n/github-workflows/.github/workflows/flake-check.yaml@main
2 changes: 1 addition & 1 deletion .github/workflows/generate-mrpack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v23
uses: cachix/install-nix-action@v25
- name: Create mrpack
run: |
OUTPUT_PATH=$(nix build .#modrinth-pack --print-out-paths)
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/update-flake-lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Update flake.lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: "0 10 1,14 * *"

jobs:
update-flake-lock:
uses: pedorich-n/github-workflows/.github/workflows/update-flake-lock.yaml@main
secrets:
gh_access_token: ${{ secrets.GH_ACCESS_TOKEN }}
10 changes: 2 additions & 8 deletions dev/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
};
};
};
outputs = inputs@{ flake-parts, systems, self, ... }: flake-parts.lib.mkFlake { inherit inputs; } ({ moduleWithSystem, ... }: {

outputs = inputs@{ flake-parts, systems, self, ... }: flake-parts.lib.mkFlake { inherit inputs; } ({
systems = import systems;

perSystem = { system, pkgs, ... }: {
Expand All @@ -42,13 +43,6 @@
poetry
];
};

builder = pkgs.mkShell {
packages = with pkgs; [
yq-go
packwiz
];
};
};
};
});
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = inputs@{ flake-parts, systems, packwiz2nix, self, ... }: flake-parts.lib.mkFlake { inherit inputs; } ({ moduleWithSystem, ... }: {
systems = import systems;

Expand Down

0 comments on commit db822e9

Please sign in to comment.