mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-21 15:54:21 +01:00
Change how we get the current branch name
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
45aee89f92
commit
2391236a38
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue