Skip to content

Commit f28b3c8

Browse files
committed
feat(github): add disko comparison workflow
1 parent c1d8e61 commit f28b3c8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/reusable-compare-disko.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,24 @@ jobs:
3535

3636
steps:
3737
- uses: actions/checkout@v4
38-
with:
39-
fetch-depth: 0
4038

4139
- name: Install Nix
4240
uses: metacraft-labs/nixos-modules/.github/install-nix@main
4341
with:
4442
cachix-cache: ${{ vars.CACHIX_CACHE }}
4543
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
46-
nix-github-token: ${{ secrets.NIX_GITHUB_TOKEN }}
4744

4845
- name: Compare disko configurations
46+
env:
47+
CACHIX_CACHE: ${{ vars.CACHIX_CACHE }}
48+
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
49+
MCL_BRANCH: ${{ github.repository == 'metacraft-labs/nixos-modules' && github.sha || 'main' }}
4950
run: nix run --accept-flake-config github:metacraft-labs/nixos-modules/${{ env.MCL_BRANCH }}#mcl compare_disko
5051

5152
create-comment:
5253
runs-on: ${{ fromJSON(inputs.runner) }}
5354
name: 'Create comment'
55+
needs: [post-initial-comment, compare-disko-configs]
5456

5557
steps:
5658
- name: Post Comment

0 commit comments

Comments
 (0)