Skip to content

fix ci

fix ci #27

Workflow file for this run

name: Run chezmoi
on:
- push
jobs:
install:
permissions:
pull-requests: write
name: Install dotfiles
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y zsh
- name: Install dotfiles
id: install
run: sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply -S .
shell: zsh {0}
- name: "Make PR Comment body"
id: comment
if: steps.install.outcome == 'success'
run: |
pr_comment_body=''
aqua_output=$(aqua list --installed -a)
mise_output=$(mise ls)
pr_comment_body=$(cat << EOF
aqua managed tools
<code>${aqua_output}</code>
mise managed runtimes
<code>${mise_output}</code>
EOF)
echo ::set-output name=result::${pr_comment_body}
- name: "PR comment on Update in CI"
uses: marocchino/sticky-pull-request-comment@v2
if: steps.install.outcome == 'success'
with:
header: Installed tools
recreate: true
message: |
${{ steps.comment.outputs.result }}