|
67 | 67 |
|
68 | 68 | - name: Generate Matrix for Matrix |
69 | 69 | id: generate-matrix |
70 | | - run: | |
71 | | - if [ "${{ github.repository }}" != "metacraft-labs/nixos-modules" ]; then |
72 | | - nix run --accept-flake-config github:metacraft-labs/nixos-modules#mcl shard_matrix |
73 | | - else |
74 | | - nix run --accept-flake-config .#mcl shard_matrix |
75 | | - fi |
| 70 | + env: |
| 71 | + MCL_BRANCH: ${{ github.repository == 'metacraft-labs/nixos-modules' && github.sha || 'main' }} |
| 72 | + run: nix run --accept-flake-config github:metacraft-labs/nixos-modules/${{ env.MCL_BRANCH }}#mcl shard_matrix |
76 | 73 | outputs: |
77 | 74 | gen_matrix: ${{ steps.generate-matrix.outputs.gen_matrix }} |
78 | 75 |
|
@@ -103,12 +100,8 @@ jobs: |
103 | 100 | CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} |
104 | 101 | FLAKE_PRE: ${{ matrix.prefix }} |
105 | 102 | FLAKE_POST: ${{ matrix.postfix }} |
106 | | - run: | |
107 | | - if [ "${{ github.repository }}" != "metacraft-labs/nixos-modules" ]; then |
108 | | - nix run --accept-flake-config github:metacraft-labs/nixos-modules#mcl ci_matrix |
109 | | - else |
110 | | - nix run --accept-flake-config .#mcl ci_matrix |
111 | | - fi |
| 103 | + MCL_BRANCH: ${{ github.repository == 'metacraft-labs/nixos-modules' && github.sha || 'main' }} |
| 104 | + run: nix run --accept-flake-config github:metacraft-labs/nixos-modules/${{ env.MCL_BRANCH }}#mcl ci_matrix |
112 | 105 |
|
113 | 106 | - uses: actions/upload-artifact@v4 |
114 | 107 | with: |
@@ -244,4 +237,5 @@ jobs: |
244 | 237 | CACHIX_CACHE: ${{ vars.CACHIX_CACHE }} |
245 | 238 | CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} |
246 | 239 | CACHIX_ACTIVATE_TOKEN: '${{ secrets.CACHIX_ACTIVATE_TOKEN }}' |
247 | | - run: nix run --accept-flake-config github:metacraft-labs/nixos-modules#mcl deploy_spec |
| 240 | + MCL_BRANCH: ${{ github.repository == 'metacraft-labs/nixos-modules' && github.sha || 'main' }} |
| 241 | + run: nix run --accept-flake-config github:metacraft-labs/nixos-modules/${{ env.MCL_BRANCH }}#mcl deploy_spec |
0 commit comments