integrate flake-update-diff

This commit is contained in:
ahuston-0 2025-03-03 11:24:28 -05:00
parent fd7a8204c3
commit 9630a1cee1
No known key found for this signature in database
GPG Key ID: 47940175096C1330

View File

@ -28,23 +28,23 @@ jobs:
cache: ${{ secrets.ATTIC_CACHE }} cache: ${{ secrets.ATTIC_CACHE }}
token: ${{ secrets.ATTIC_TOKEN }} token: ${{ secrets.ATTIC_TOKEN }}
- name: Calculate pre-drv - name: Calculate pre-drv
run: nix ./utils/eval-to-drv.sh pre run: nix run git+https://nayeonie.com/ahuston-0/flake-update-diff --keep-hydra .
# - name: Pull latest docker images # - name: Pull latest docker images
# run: nix ./utils/fetch-docker.sh # run: nix ./utils/fetch-docker.sh
- name: Update flake.lock (part 1) - name: Update flake.lock (part 1)
run: nix flake update run: nix flake update
- name: Calculate post-drv - name: Calculate post-drv
run: nix ./utils/eval-to-drv.sh post run: nix run git+https://nayeonie.com/ahuston-0/flake-update-diff --keep-hydra .
- name: Calculate diff # - name: Calculate diff
run: nix ./utils/diff-evals.sh # run: nix ./utils/diff-evals.sh
- name: Read diff into environment # - name: Read diff into environment
run: | # run: |
delimiter="$(openssl rand -hex 8)" # delimiter="$(openssl rand -hex 8)"
{ # {
echo "POSTDIFF<<${delimiter}" # echo "POSTDIFF<<${delimiter}"
cat post-diff # cat post-diff
echo "${delimiter}" # echo "${delimiter}"
} >> $GITHUB_ENV # } >> $GITHUB_ENV
- name: Restore flake.lock for next step - name: Restore flake.lock for next step