The release/publish step had drifted from the reference template:
PR-number extraction used the local commit log after the version-bump
commit was already made, so it could never find the triggering PR's
number — fixed by keying off github.sha instead. Also fixes docker
login casing (Djeex, not djeex), pins Trivy to 0.74.0, makes the
deprecation check informative instead of build-blocking, skips
publish entirely when no container-relevant file changed, and
matches the richer changelog body (source/image/changed-files).