Plan a Composer source release before validation, without changing repository state. Continue only when status is ready, then pass tag to the release workflow. See the release guide for the complete prepare, validate and release journey.
contents:readpull-requests:read
name: Prepare Composer Package Release
on:
push:
branches:
- main
permissions: {}
jobs:
prepare-package-release:
uses: hoverkraft-tech/ci-github-php/.github/workflows/prepare-package-release.yml@9fc3d4e8925f8c6d87f1d46bd6b695ef75cb0f0a # 2.0.4
permissions:
contents: read
pull-requests: read
with:
# Partial YAML or JSON configuration forwarded to ci-github-publish/actions/release/plan. Pass the same configuration to preparation and publication.
release-config: ""
# Plan a release without relevant changes on manual default-branch runs. Ignored on schedules and tag retries. Shared planning preserves higher versions and never overwrites tags.
force: false| Input | Description | Required | Type | Default |
|---|---|---|---|---|
release-config |
Partial YAML or JSON configuration forwarded to ci-github-publish/actions/release/plan. Pass the same configuration to preparation and publication. | false | string | - |
force |
Plan a release without relevant changes on manual default-branch runs. Ignored on schedules and tag retries. Shared planning preserves higher versions and never overwrites tags. | false | boolean | false |
| Output | Description |
|---|---|
status |
ready, no-changes or released. Only ready should start validation and publication. |
tag |
Planned or recovered Composer version tag. Available when status is ready; pass unchanged to release.yml. |
Contributions are welcome! Please see the contributing guidelines for more details.
This project is licensed under the MIT License.
SPDX-License-Identifier: MIT
Copyright © 2026 hoverkraft-tech
For more details, see the license.
This documentation was automatically generated by CI Dokumentor.