Skip to content

actually uses our .stylua.toml #26

actually uses our .stylua.toml

actually uses our .stylua.toml #26

name: "Compile Dotfiles"
on:
push:
branches:
- main
jobs:
compile_dotfiles:
name: Compile Dotfles
runs-on: macos-latest
steps:
- name: Checkout Output Branch
uses: actions/checkout@v3
with:
ref: compiled
- name: Cleanup Working Directory
run: |
cp README.md ~/README.md
git rm -rf .
cp ~/README.md README.md
- name: Install Chezmoi
run: sh -c "$(curl -fsLS get.chezmoi.io)"
- name: Initialise Dotfiles
run: ./bin/chezmoi init harryob
- name: Output Dotfiles
run: mkdir output && ./bin/chezmoi apply --destination .
- name: Move Output and Commit
run: |
rm -rf bin
git config user.name Compiler
git config user.email [email protected]
git add .
git commit -m "compiled dotfiles"
git push