diff --git a/.github/workflows/build-hds.yaml b/.github/workflows/build-hds.yaml index edb4778..8a4c1ad 100644 --- a/.github/workflows/build-hds.yaml +++ b/.github/workflows/build-hds.yaml @@ -82,16 +82,17 @@ jobs: sudo launchctl debug system/org.nixos.nix-daemon --environment NIX_GITHUB_PRIVATE_USERNAME=$NIX_GITHUB_PRIVATE_USERNAME NIX_GITHUB_PRIVATE_PASSWORD=$NIX_GITHUB_PRIVATE_PASSWORD # debug whether the nix-daemon PID changes before and after as a restart of it is required for the changes to take effect - sudo pgrep nix-daemon ( set +eE +o pipefail set -x + + sudo pgrep nix-daemon sudo launchctl stop system/org.nixos.nix-daemon sudo pkill -9 nix-daemon sudo launchctl start system/org.nixos.nix-daemon + sudo pgrep nix-daemon exit 0 ) - sudo pgrep nix-daemon else echo Unsupported system exit 1