-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance maven-cd.yml with an input to run job 'validate' only (job 'release' will be skipped) #32
Enhance maven-cd.yml with an input to run job 'validate' only (job 'release' will be skipped) #32
Conversation
- maven-cd.yml: - add input validate_only with default to 'false' - extend jobs.validate.outpus.should_release to ${{ inputs.validate_only == 'false' && ... }} - add step validate.steps.log-should_release-details to log details of the should_release flag to leverage analysis
I am not sure I follow the use case. What do you get out of this that you do not get already by simply commenting out the |
@jglick - Many thanks having had a look! |
@jglick Is there anything else I can help with to follow my use case? |
I just have not had time to follow up, sorry. If anyone else (@timja, etc.) wishes to merge, go ahead. |
Can't you just add a separate release drafter workflow that runs on push / workflow_dispatch? (extracted from the workflow here:) - name: Release Drafter
uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # v6
id: draft
with:
name: next
tag: next
version: next
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
@timja hmm - yes for sure I could have setup a dedicated workflow for this, but my considerations did have been
This was the reason to spend some time in well testing and documenting my test results to demonstrate full backward compatibility to the state being. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure there's no harm in it let's go with it
Motivation / Requirement
Currently the
maven-cd.yml
called by currentcd.yaml
will run a release, in case the Jenkins job build succeeded and there is at least one PR with a category of release interest. In case there is demand to combine more than one PR with an interesting category into same release, one has to disablecheck_run
trigger incd.yaml
to manually trigger a cd run.Currently the manual
workflow_dispatch
trigger will run the release job in any case and regardless of the PR categories just if last Jenkins build of the plugin did succeed.Enhancement requirement
I would like to have the option to trigger a cd manually, but to perform the
validate
job ofmaven-cd.yml
ONLY and to enforce skipping of the release job just to have a review and to check what PRs will get listed byrelease-drafter
.👉 If his PR gets merged, I would like to file another PR for the
cd.yaml
template to provide the validate_only input forworkflow_dispatch
.Implementation Details
maven-cd.yml
:validate_only
with default tofalse
jobs.validate.outputs.should_release
to${{ inputs.validate_only == 'false' && ... }}
validate.steps.log-should_release-details
to log details of theshould_release
flag to leverage analysisTests Performed
Test Case 1:
=> default 'false' effectively used
since there is no interesting category
Test Case 2:
since VALIDATE_ONLY is true and there is no interesting category
Test Case 3:
@lemeurherve @timja - please have a look - thx Markus