Skip to content

Commit

Permalink
adds a compile workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Feb 25, 2024
1 parent 348c397 commit 6ed9744
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[*.yml]
indent_style = space
indent_size = 2
33 changes: 33 additions & 0 deletions .github/workflows/compile_dotfiles.yml
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

0 comments on commit 6ed9744

Please sign in to comment.