Files
server-config/.github/workflows/diff-tag.yml
T
Floweynt df615ba3c1
diff-tag / dix (push) Canceled after 1m4s
flake-check / flake-check (push) Canceled after 10s
lint / lint (push) Canceled after 3m44s
try fixing gitea ci: v14
2026-09-10 11:13:32 -05:00

33 lines
854 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
- 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 -L .#ci -- diff "$RUNNER_TEMP/old" . \
"# System closure diff: \`$tag\` -> \`$head\`"
nix run -L .#ci -- inspect-diff "$RUNNER_TEMP/old" . \
"# Inspection diff: \`$tag\` -> \`$head\`"
} | tee -a "$GITHUB_STEP_SUMMARY"