Change how we get the current branch name

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-04-23 23:20:18 +02:00
parent 45aee89f92
commit 2391236a38
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -72,7 +72,7 @@
_flake_metadata="$(nix flake metadata git+file://$PWD?rev="$(git rev-parse HEAD)" --json)"
export TF_VAR_flake_rev="$(echo "$_flake_metadata" | jq .locked.rev -r)"
export TF_VAR_flake_sha="$(echo "$_flake_metadata" | jq .locked.narHash -r)"
export TF_VAR_flake_ref="$(git name-rev --name-only HEAD)"
export TF_VAR_flake_ref="$(git rev-parse --abbrev-ref HEAD)"
case "$1" in
"env")
shift 1