chore(deps): update github-actions (#346) #1626
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # 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 }}" |