Skip to content

[ci] chore: Improve publish-release job dependencies - #6792

Merged
adangel merged 2 commits into
pmd:mainfrom
adangel:chore/publish-release-workflow
Jun 22, 2026
Merged

adangel merged 2 commits into
pmd:mainfrom
adangel:chore/publish-release-workflow

Conversation

@adangel

@adangel adangel commented Jun 19, 2026

Copy link
Copy Markdown
Member

Describe the PR

Now each job only depends on one other job.
This should finally make the graphical display
more reasonable. The variable PMD_VERSION is
reexported when needed.

Currently, the graph looks like this (https://github.com/pmd/pmd/actions/runs/26623758294):

grafik

It looks like as if upload-regression-tester-baseline depends on github release as well, but this arrow actually points all the way back to "check-version".

With this change, this arrow disappear and this graph hopefully looks more reasonable.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

Now each job only depends on one other job.
This should finally make the graphical display
more reasonable. The variable PMD_VERSION is
reexported when needed.
@adangel adangel added this to the 7.26.0 milestone Jun 19, 2026
@adangel adangel added the github_actions Pull requests that update Github_actions code label Jun 19, 2026
@adangel
adangel requested a review from Copilot June 19, 2026 09:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the .github/workflows/publish-release.yml workflow to simplify the GitHub Actions job dependency graph by ensuring each job depends on only one upstream job, while still making PMD_VERSION (and the regression baseline zip filename) available via job outputs where needed.

Changes:

  • Reworked job needs to depend on a single upstream job (primarily deploy-to-maven-central, and github-release for docker).
  • Added job outputs and “re-export” steps so PMD_VERSION can be consumed through the new dependency chain.
  • Refactored regression-tester baseline creation to expose the produced zip filename as a job output and reuse it in follow-up upload steps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/publish-release.yml Resolved
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@pmd-actions-helper

Copy link
Copy Markdown
Contributor

Documentation Preview

No relevant source code has been changed, pmdtester skipped.

(comment created at 2026-06-19 09:55:33+00:00 for 822d369)

@adangel
adangel merged commit 664b643 into pmd:main Jun 22, 2026
12 checks passed
@adangel
adangel deleted the chore/publish-release-workflow branch June 22, 2026 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update Github_actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants