FWIW: I have a post-commit hook script working on this VyOS setup:
vyos@vyos:/run$ show version
Version: VyOS 1.4-rolling-202211010829
Release train: current
Built by: [email protected]
Built on: Tue 01 Nov 2022 08:29 UTC
Build UUID: 15370146-6844-4479-b4a6-b0d265eea441
Build commit ID: 64e77f12f66ce4
Architecture: x86_64
Boot via: installed image
System type: KVM guest
Hardware vendor: QEMU
Hardware model: Standard PC (i440FX + PIIX, 1996)
Hardware S/N:
Hardware UUID: 6c7a3724-4ddc-40fd-aea4-4bb6977a6b5f
Copyright: VyOS maintainers and contributors