From 7d713f67e6dbd79e6e5227d867b115d3d0b56861 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 15 Aug 2024 10:53:51 -0500 Subject: [PATCH] test color enabled diff --- .github/workflows/update.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 5da23b6..ad5cd65 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -127,6 +127,7 @@ jobs: echo "# System Diff" >> $GITHUB_STEP_SUMMARY nix run "nixpkgs#nvd" -- --color always diff ./current ./updated >> summary.md printf '```\n%s```\n' "$(nix run "nixpkgs#nvd" -- diff ./current ./updated)" >> $GITHUB_STEP_SUMMARY + nix run "nixpkgs#nvd" -- --color always diff ./current ./updated | nix run "nixpkgs#charm-freeze" -- --output diff.svg - run: df -h @@ -134,3 +135,13 @@ jobs: with: name: ${{ matrix.host }}-summary path: summary.md + + # https://github.com/actions/upload-artifact/issues/50#issuecomment-1856471599 + - uses: actions/upload-artifact@v4 + id: diff-upload + with: + name: ${{ matrix.host }}-diff + path: diff.svg + + - name: Output artifact URL + run: echo 'Artifact URL is ${{ steps.diff-upload.outputs.artifact-url }}'