this repo has no description
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

build: let deploy script take commit msg [skip ci]

dusk b17cc60f fd0d75a6

+18 -11
+18 -11
deploy.nu
··· 4 4 5 5 path add /nix/var/nix/profiles/default/bin 6 6 7 - nix flake update 7 + def main [msg?: string] { 8 + nix flake update 8 9 9 - try { 10 - git add . 11 - git commit -m "chore: update flake dependencies (deploy) [skip ci]" 12 - git push 13 - } 10 + try { 11 + git add . 12 + let commit_msg = if $msg == null { 13 + "chore: update flake dependencies (deploy)" 14 + } else { 15 + $msg 16 + } 17 + git commit -m $"($commit_msg) [skip ci]" 18 + git push 19 + } 14 20 15 - let start = date now 16 - secrets/deploy-webhook.nu $"deploying wolumonde: started" 21 + let start = date now 22 + secrets/deploy-webhook.nu $"deploying wolumonde: started" 17 23 18 - let result = nix run ".#apps.nixinate.wolumonde" -L --show-trace | complete 19 - let end = date now 24 + let result = nix run ".#apps.nixinate.wolumonde" -L --show-trace | complete 25 + let end = date now 20 26 21 - secrets/deploy-webhook.nu $"deployed wolumonde: finished, took ($end - $start)\n\n($result | to text)" $result.exit_code 27 + secrets/deploy-webhook.nu $"deployed wolumonde: finished, took ($end - $start)\n\n($result | to text)" $result.exit_code 28 + }