-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (37 loc) · 1.17 KB
/
pr_chezmoi_init.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
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
# yamllint disable-line rule:line-length
uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3
with:
# https://github.com/scottames/boxes
image: ghcr.io/scottames/fedora-toolbox:latest
# yamllint disable-line rule:line-length
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 }}" \
--promptDefaults