Skip to content

Commit

Permalink
ci(GH-actions): fix print-matrix action
Browse files Browse the repository at this point in the history
  • Loading branch information
monyarm committed Apr 19, 2024
1 parent b81bf09 commit b61cd10
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/print-matrix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ inputs:
precalc_matrix:
description: Pre-calculated matrix
required: true
token:
description: GitHub token
required: true

outputs:
matrix:
Expand Down Expand Up @@ -62,7 +65,7 @@ runs:
PRECALC_MATRIX: ${{ inputs.precalc_matrix }}
run: |
nix run github:metacraft-labs/nixos-modules/feat/CD#mcl print_table
cat comment.md
# echo "comment<<$EOF" >> $GITHUB_OUTPUT
# cat comment.md >> $GITHUB_OUTPUT
# echo $EOF >> $GITHUB_OUTPUT
Expand All @@ -79,5 +82,6 @@ runs:
if: ${{ inputs.comment_matrix == true }}
uses: marocchino/[email protected]
with:
GITHUB_TOKEN: ${{ inputs.token }}
recreate: true
path: comment.md
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ jobs:
trusted-public-keys: ${{ vars.TRUSTED_PUBLIC_KEYS }}
substituters: ${{ vars.SUBSTITUTERS }}
precalc_matrix: ${{ steps.matrix.outputs.matrix }}
token: ${{ secrets.GITHUB_TOKEN }}
build:
needs: slurp-matrix
if: needs.slurp-matrix.outputs.matrix != '' && needs.slurp-matrix.outputs.matrix != '{}' && needs.slurp-matrix.outputs.matrix != '{"include":[]}'
Expand Down Expand Up @@ -160,6 +161,7 @@ jobs:
trusted-public-keys: ${{ vars.TRUSTED_PUBLIC_KEYS }}
substituters: ${{ vars.SUBSTITUTERS }}
precalc_matrix: ${{ needs.slurp-matrix.outputs.matrix }}
token: ${{ secrets.GITHUB_TOKEN }}

- uses: cachix/cachix-action@v14
if: ${{inputs.do_deploy == 'true' && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch)) }}
Expand Down
1 change: 1 addition & 0 deletions packages/mcl/src/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ int main(string[] args)

writeln("Running ", __traits(identifier, cmd));
cmd();
writeln("Execution Succesfull");
return 0;

}
Expand Down

0 comments on commit b61cd10

Please sign in to comment.