Skip to content

not pull request, obviously #1

not pull request, obviously

not pull request, obviously #1

name: "Compile Dotfiles"
on:
push:
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