From 3361b8b3a75a2d12c6c36f502d4317161b0d4330 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 12 Mar 2025 23:08:59 -0400 Subject: [PATCH] replace file reader Signed-off-by: ahuston-0 --- .github/workflows/flake-update.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/flake-update.yml b/.github/workflows/flake-update.yml index 4c26304..fb99e9c 100644 --- a/.github/workflows/flake-update.yml +++ b/.github/workflows/flake-update.yml @@ -94,14 +94,13 @@ jobs: run: nix ./utils/eval-to-drv.sh post - name: Calculate diff run: nix ./utils/diff-evals.sh - - name: Read diff into environment - run: | - delimiter="$(openssl rand -hex 8)" - { - echo "POSTDIFF<<${delimiter}" - cat post-diff - echo "${delimiter}" - } >> $GITHUB_ENV + - name: Read file contents + id: read_file + uses: andstor/file-reader-action@v1 + with: + path: "post-diff" + - name: File contents + run: echo "${ steps.read_file.outputs.contents }" - name: Write PR body template uses: https://github.com/DamianReeves/write-file-action@v1.3 with: @@ -114,7 +113,7 @@ jobs: ``` ``` - {{ env.POSTDIFF }} + {{ steps.read_file.outputs.contents }} ``` Auto-generated by [update.yml][1] with the help of