Skip to content

fix ci

fix ci #25

Workflow file for this run

name: Run chezmoi
on:
- push
jobs:
install:
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
run: sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply -S .
shell: zsh {0}
comment-tool-versions:
permissions:
pull-requests: write
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v4
- name: "Make PR Comment body"
id: comment
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
with:
header: Installed tools
recreate: true
message: |
${{ steps.comment.outputs.result }}