working directory #3
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
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: ./bin/chezmoi init harryob | |
- name: Output Dotfiles | |
run: mkdir ./output && ./bin/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 |