Parse Project Config Workflow
Parse and validate project configuration from intent.yaml file.
Overviewโ
This workflow parses the enhanced intent.yaml configuration file, validates its structure, and provides structured outputs for all project settings including Docker, Git, validation, and documentation configuration.
When to Useโ
- โ You need to parse intent.yaml configuration
- โ You want centralized project configuration
- โ You need configuration validation
- โ You're using the release system
Inputsโ
| Input | Type | Default | Description |
|---|---|---|---|
config_path | string | '.github/tag_and_release/intent.yaml' | Path to config file |
Outputsโ
| Output | Description |
|---|---|
project_name | Project name |
package_name | Python package name |
base_branch | Base branch name |
git_commit_name | Git commit author name |
git_commit_email | Git commit author email |
docker_registry_dockerhub | Docker Hub registry URL |
docker_registry_ghcr | GHCR registry URL |
docker_health_check_path | Health check endpoint |
docker_health_check_port | Health check port |
docker_run_options | Docker run options |
validation_version | Validation version |
validation_test_version | Test version |
docs_readme_path | README path |
docs_installation_path | Installation docs path |
docs_ci_cd_path | CI/CD docs path |
docs_preview_branch | Preview branch name |
Usage Examplesโ
Basic Usageโ
jobs:
config:
uses: Chisanan232/GitHub-Action_Reusable_Workflows-Python/.github/workflows/rw_parse_project_config.yaml@master
use-config:
needs: config
runs-on: ubuntu-latest
steps:
- name: Use config
run: |
echo "Project: ${{ needs.config.outputs.project_name }}"
echo "Package: ${{ needs.config.outputs.package_name }}"
In Release Workflowโ
jobs:
config:
uses: Chisanan232/GitHub-Action_Reusable_Workflows-Python/.github/workflows/rw_parse_project_config.yaml@master
release:
needs: config
runs-on: ubuntu-latest
steps:
- name: Configure Git
run: |
git config user.name "${{ needs.config.outputs.git_commit_name }}"
git config user.email "${{ needs.config.outputs.git_commit_email }}"
Configuration Fileโ
See Release Intent Configuration for complete configuration reference.
Related Workflowsโ
- rw_parse_release_intent - Parse release intent
- Release Intent Configuration - Configuration guide
- rw_release_complete - Production release