Skip to content

Commit

Permalink
lets goooo guys
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Feb 26, 2024
1 parent d775d6a commit dcafff2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .chezmoiscripts/run_once_before_00-install-homebrew.sh.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{{ if eq .chezmoi.os "darwin" -}}
#!/bin/sh

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
if ! [ -x "$(command -v git)" ]; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi

{{ end -}}
13 changes: 11 additions & 2 deletions .chezmoiscripts/run_onchange_after_99-load-brewfile.sh.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/bin/bash

# brewfile hash: {{ include "dot_Brewfile" | sha256sum }}
brew bundle cleanup --force --global
brew bundle install --force --global

EXTRA_ARGS="--global"

{{ if env "WORKFLOW" -}}

EXTRA_ARGS="--file ./output/Brewfile"

{{ end -}}

brew bundle cleanup --force ${EXTRA_ARGS}
brew bundle install --force ${EXTRA_ARGS}
5 changes: 4 additions & 1 deletion .github/workflows/compile_dotfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- main

env:
WORKFLOW: true

jobs:
compile_dotfiles:
name: Compile Dotfles
Expand All @@ -30,4 +33,4 @@ jobs:
git config user.email [email protected]
git add .
git commit -m "compiled dotfiles"
git push
git push

0 comments on commit dcafff2

Please sign in to comment.