fix: chezmoi init current dir after checkout #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: CI | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
push: | |
branches: | |
- main | |
workflow_call: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
Linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install (Chezmoi) | |
run: sudo apt update && sudo apt install -y chezmoi | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Init | |
run: chezmoi init --source $(pwd) | |
- name: Apply | |
run: chezmoi apply | |
macOS: | |
runs-on: macos-latest | |
steps: | |
- name: Install (Chezmoi) | |
run: brew install chezmoi | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Init | |
run: chezmoi init --source $(pwd) | |
- name: Apply | |
run: chezmoi apply |