Skip to content

chore: upgrade trunk (#372) #1711

chore: upgrade trunk (#372)

chore: upgrade trunk (#372) #1711

---
name: chezmoi init
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions: read-all
jobs:
getModules:
name: chezmoi init
runs-on: ubuntu-latest
permissions:
checks: write
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Extract branch name
shell: bash
run: |
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Run chezmoi init in container
uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3
with:
# https://github.com/scottames/boxes
image: ghcr.io/scottames/fedora-toolbox:latest
options: -v ${{ github.workspace }}:/home/container/src/github.com/scottames/dots/main
run: |
/home/container/src/github.com/scottames/dots/main/scripts/init.sh \
--no-tty --branch "${{ steps.extract_branch.outputs.branch }}"