Skip to content
This repository was archived by the owner on Dec 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ inputs:
description: GitHub token or PAT for authentication
required: true

source:
description: Path to the YAML configuration file containing template settings
required: true

branch:
description: Target branch for the sync
required: false
Expand Down Expand Up @@ -57,8 +53,7 @@ runs:
# ------------------------------------------------------------
- name: Validate rhiza configuration
shell: bash
run: |
uvx rhiza validate "${{ inputs.source }}"
run: uvx rhiza validate .

# ------------------------------------------------------------
# Materialize + commit changes
Expand All @@ -71,7 +66,7 @@ runs:

git checkout -B "${{ inputs.branch }}"

uvx rhiza materialize "${{ inputs.source }}"
uvx rhiza materialize .

git add -A

Expand Down
7 changes: 4 additions & 3 deletions tests/test-action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ git branch -M main
# ------------------------------------------------------------
# Rhiza config
# ------------------------------------------------------------
cat > template.yml <<EOF
mkdir -p .github
cat > .github/template.yml <<EOF
template-repository: ${SOURCE_REPO}
template-branch: main
include:
Expand All @@ -122,11 +123,11 @@ EOF
# Run rhiza (this is what the action does)
# ------------------------------------------------------------
echo -e "${YELLOW}Running rhiza validate${NC}"
uvx rhiza validate template.yml
uvx rhiza validate .

echo -e "${YELLOW}Running rhiza materialize${NC}"
git checkout -B sync/template-update
uvx rhiza materialize template.yml
uvx rhiza materialize .

git add -A
git commit -qm "chore: sync template"
Expand Down