Files
server-config/.github/workflows/diff-tag.yml
T
Floweynt d3b1db7836
flake-check / flake-check (push) Canceled after 0s
lint / lint (push) Canceled after 0s
diff-tag / dix (push) Failing after 0s
try and get CI workflow to work
2026-09-09 20:11:43 -05:00

38 lines
992 B
YAML

name: diff-tag
on:
push:
branches: [master]
permissions:
contents: read
jobs:
dix:
runs-on: nix
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
experimental-features = nix-command flakes
- name: diff latest tag against HEAD
run: |
tag=$(git tag --sort=-creatordate | head -n1)
if [ -z "$tag" ]; then
echo "No tags yet, skipping diff." | tee -a "$GITHUB_STEP_SUMMARY"
exit 0
fi
git worktree add "$RUNNER_TEMP/old" "$tag"
head=$(git rev-parse --short HEAD)
{
nix run .#ci -- diff "$RUNNER_TEMP/old" . \
"# System closure diff: \`$tag\` -> \`$head\`"
nix run .#ci -- inspect-diff "$RUNNER_TEMP/old" . \
"# Inspection diff: \`$tag\` -> \`$head\`"
} | tee -a "$GITHUB_STEP_SUMMARY"