Automates the release workflow across all components, starting with the CLI, followed by the Wrappers, and concluding with the Plugins. This streamlined process ensures consistent and efficient deployment across the entire ecosystem.
.github/workflows/dispatch-workflow.yml is called, after a release is published, by the manual
"Update dependent plugins" workflow of ast-cli, ast-cli-java-wrapper, ast-cli-javascript-wrapper
and ast-cli-javascript-wrapper-runtime-cli. It:
- runs in the caller's
releaseenvironment, frommainonly; - refuses a release that is a draft, a pre-release or not immutable; for a Java wrapper release, waits (up to 30 minutes) until the jar is on Maven Central;
- sends a
repository_dispatchevent (client_payload.version= the tag) to every consumer repo; - waits for the update PRs and lists them in the job summary.
| Released repo | Event | Consumers |
|---|---|---|
| ast-cli | cli-version-update |
ast-cli-java-wrapper, ast-cli-javascript-wrapper, ast-cli-javascript-wrapper-runtime-cli, ast-github-action, ast-teamcity-plugin, ast-visual-studio-extension |
| ast-cli-javascript-wrapper | js-wrapper-version-update |
ast-vscode-extension |
| ast-cli-javascript-wrapper-runtime-cli | js-runtime-wrapper-version-update |
ast-azure-plugin |
| ast-cli-java-wrapper | java-wrapper-version-update |
ast-eclipse-plugin, ast-jetbrains-plugin, ast-cli-maven-plugin |
Caller example:
on:
workflow_dispatch:
inputs:
tag:
description: Published release tag
required: true
permissions:
contents: read
jobs:
update-dependent-plugins:
permissions:
contents: read
id-token: write
uses: Checkmarx/plugins-release-workflow/.github/workflows/dispatch-workflow.yml@<commit-sha>
with:
tag: ${{ inputs.tag }}