integrate flake-update-diff #19
26
.github/workflows/flake-update.yml
vendored
26
.github/workflows/flake-update.yml
vendored
@ -7,7 +7,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
createPullRequest:
|
createPullRequest:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.ref == 'refs/heads/main' # ensure workflow_dispatch only runs on main
|
# if: github.ref == 'refs/heads/main' # ensure workflow_dispatch only runs on main
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
# - name: Login to Docker Hub
|
# - name: Login to Docker Hub
|
||||||
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user