diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ccb7c6f..5a8a210 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,11 +22,8 @@ jobs: brew install chezmoi - name: Install run: | - echo ${GITHUB_REF##*/} - echo ${{ github.event.pull_request.base.ref }} - echo ${{ github.event.pull_request.head.ref }} - echo ${{github.ref_name}} - echo ${{github.head_ref}} - chezmoi init https://github.com/marchdf/dotfiles.git --branch ${GITHUB_REF##*/} --promptString email="" --promptBool use_zsh_root_dir=false + export BRANCH=${{ github.head_ref || github.ref_name }} + echo $BRANCH + chezmoi init https://github.com/marchdf/dotfiles.git --branch ${BRANCH} --promptString email="" --promptBool use_zsh_root_dir=false chezmoi data # chezmoi apply -v