-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "Compile Dotfiles" | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
compile_dotfiles: | ||
name: Compile Dotfles | ||
runs-on: macos-latest | ||
steps: | ||
- name: Install Chezmoi | ||
run: sh -c "$(curl -fsLS get.chezmoi.io)" | ||
|
||
- name: Initialise Dotfiles | ||
run: chezmoi init harryob | ||
|
||
- name: Output Dotfiles | ||
run: mkdir /output && chezmoi apply --destination /output | ||
|
||
- name: Checkout Output Branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: compiled | ||
|
||
- name: Move Output and Commit | ||
run: | | ||
mv /output/* . | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add . | ||
git commit -m "compiled dotfiles" | ||
git push |