zsh update #25
Workflow file for this run
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: dotfiles-CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
schedule: | |
- cron: "0 5 * * 1" | |
concurrency: | |
group: ${{github.ref}}-${{github.head_ref}}-ci | |
cancel-in-progress: true | |
jobs: | |
Dotfiles: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
include: | |
- os: macos-latest | |
install_deps: brew install chezmoi | |
- os: ubuntu-latest | |
install_deps: sudo apt-get update && sh -c "$(curl -fsLS get.chezmoi.io)" -- -b $HOME/.local/bin && export PATH="${HOME}/.local/bin:$PATH" | |
steps: | |
- name: Dependencies | |
run: | | |
${{matrix.install_deps}} | |
- name: Install | |
run: | | |
export BRANCH=${{ github.head_ref || github.ref_name }} | |
echo $BRANCH | |
chezmoi init https://github.com/marchdf/dotfiles.git --branch ${BRANCH} --promptBool test_machine=t,"Use ZSH_ROOT_DIR for tmux shell"=f --promptString email="" | |
chezmoi data | |
chezmoi apply |