Parse Release Intent Workflow
Parse and validate release intent configuration.
Overviewโ
This workflow parses the release intent section of intent.yaml, validates the configuration against JSON schema, and determines which artifacts should be released.
When to Useโ
- โ You need to parse release configuration
- โ You want to validate release intent
- โ You're implementing release workflows
- โ You need artifact release decisions
Inputsโ
| Input | Type | Default | Description |
|---|---|---|---|
config_path | string | '.github/tag_and_release/intent.yaml' | Path to config file |
Outputsโ
| Output | Description |
|---|---|
release_enabled | Whether releases are enabled |
version_level | Version bump level (auto, patch, minor, major) |
python_artifact | Python package release mode (auto, force, skip) |
docker_artifact | Docker image release mode (auto, force, skip) |
docs_artifact | Documentation release mode |
docs_sections | Documentation sections to version |
docs_strategy | Documentation versioning strategy |
release_notes | Release notes content |
Usage Examplesโ
Basic Usageโ
jobs:
intent:
uses: Chisanan232/GitHub-Action_Reusable_Workflows-Python/.github/workflows/rw_parse_release_intent.yaml@master
release:
needs: intent
if: needs.intent.outputs.release_enabled == 'true'
runs-on: ubuntu-latest
steps:
- name: Check release mode
run: |
echo "Python: ${{ needs.intent.outputs.python_artifact }}"
echo "Docker: ${{ needs.intent.outputs.docker_artifact }}"
echo "Docs: ${{ needs.intent.outputs.docs_artifact }}"
Conditional Artifact Releaseโ
jobs:
intent:
uses: Chisanan232/GitHub-Action_Reusable_Workflows-Python/.github/workflows/rw_parse_release_intent.yaml@master
python-package:
needs: intent
if: needs.intent.outputs.python_artifact != 'skip'
uses: ./.github/workflows/rw_python_package.yaml
docker-image:
needs: intent
if: needs.intent.outputs.docker_artifact != 'skip'
uses: ./.github/workflows/rw_docker_operations.yaml
Configurationโ
See Release Intent Configuration for complete configuration options.
Related Workflowsโ
- rw_parse_project_config - Parse project config
- Release Intent Configuration - Configuration guide
- rw_release_complete - Production release