From 66ac04415139a441dd762ed8287ccbc553bac980 Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Fri, 12 Apr 2024 02:02:21 +0200 Subject: [PATCH] ci: Remove `nix flake show` diff generation --- .github/workflows/pull_request.yaml | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index 6c8e9de1..a5af80f9 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -21,26 +21,4 @@ jobs: if: ${{ github.event.pull_request.head.repo.fork }} with: upstream-cache: https://ngi.cachix.org/ - - id: flake-show-diff - name: Obtain `nix flake show` output - run: | - shopt -s expand_aliases - alias show="nix flake show --all-systems" - alias filter="nix run nixpkgs#ansifilter | tail -n +2" - alias short="git rev-parse --short" - git fetch origin ${GITHUB_BASE_REF}:${GITHUB_BASE_REF} - if diff -U 1024 \ - --label "$(short $GITHUB_BASE_REF) $GITHUB_BASE_REF" <(show ".?rev=$(git rev-parse ${GITHUB_BASE_REF})" | filter) \ - --label "$(short HEAD) $GITHUB_HEAD_REF" <(show | filter) \ - >> diff - then - echo 'output=No difference in `nix flake show`.' >> "$GITHUB_OUTPUT" - else - echo -e 'output<Difference in nix flake show.\n\n```diff' >> "$GITHUB_OUTPUT" - cat diff >> "$GITHUB_OUTPUT" - echo -e '```\n\nEOF' >> "$GITHUB_OUTPUT" - fi - - uses: thollander/actions-comment-pull-request@v2 - with: - message: ${{ steps.flake-show-diff.outputs.output }} - run: nix ${{ runner.debug && '--debug --print-build-logs' }} flake check