Print more environment information

This commit is contained in:
NeilClack
2026-07-28 07:36:17 -05:00
parent bf9256fb52
commit 1630544b09
+18 -3
View File
@@ -8,9 +8,24 @@ jobs:
steps:
- name: Print Environment
run: |
which nix || echo "nix not in PATH"
which node || echo "node not in PATH"
which npm || echo "npm not in PATH"
echo "=== whoami/hostname ==="
whoami
hostname
echo "=== pwd ==="
pwd
echo "=== PATH ==="
echo "$PATH"
echo "=== full env ==="
env | sort
echo "=== os-release ==="
cat /etc/os-release 2>/dev/null || echo "no os-release"
echo "=== does /nix exist ==="
ls -la /nix 2>&1 || echo "/nix missing"
echo "=== does /nix/var/nix/profiles/default/bin exist ==="
ls -la /nix/var/nix/profiles/default/bin 2>&1 || echo "missing"
echo "=== is this a container ==="
cat /proc/1/cgroup 2>/dev/null | head -5
[ -f /.dockerenv ] && echo "IS a docker container" || echo "NOT a docker container (no /.dockerenv)"
- name: Checkout
uses: actions/checkout@v6