Files
2023-12-15 21:22:11 +03:00

8 lines
212 B
Bash

#!/bin/bash
branch=$(git rev-parse --abbrev-ref HEAD)
commit=$(git log -1 --pretty=%B)
hex=$(git rev-parse --short HEAD)
echo "{\"branch\": \"$branch\", \"commit\": \"$commit\", \"hex\": \"$hex\"}" > info.json