Are there any usage examples of chezmoi on CI? #2626
danielo515
started this conversation in
General
Replies: 2 comments 3 replies
-
You need to provide more information than just "I can't properly execute it". |
Beta Was this translation helpful? Give feedback.
3 replies
-
I think I got it working like this (reduced version): name: CI-dots
env:
GITHUB_USERNAME: "${{ github.actor }}"
on:
push:
branches:
- master
jobs:
unixish:
name: ${{ matrix.os }} ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- runner: ubuntu-20.04
os: linux
- runner: macos-12
os: osx
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v3
- name: Install chezmoi
run: |
sh -c "$(curl -fsLS chezmoi.io/get)" -- -b $HOME/bin
- name: Apply my config
timeout-minutes: 1
run: |
$HOME/bin/chezmoi init --source $GITHUB_USERNAME --apply |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As ridiculous it may sound, I want to add some testing to my dotfiles, and because I use chezmoi to manage them, then I want to use chezmoi on CI 😄
I tried some naive approaches, but, despite being able to just install chezmoi right, I can't properly execute it. Are any examples out there of people using chezmoi during CI?
Beta Was this translation helpful? Give feedback.
All reactions