- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 24
Introduce release process through GHA #497
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Kai Kreuzer <kai@openhab.org>
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.
Pull Request Overview
This PR introduces a comprehensive GitHub Actions workflow for automated Maven Central releases of the static-code-analysis project. The workflow handles the complete release lifecycle including version updates, deployment, and preparation for the next development iteration.
Key changes:
- Automated release process with manual version input parameters
- Integration with Maven Central via OSSRH and Central Publisher Portal
- Post-release verification to confirm Maven Central availability
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| git push origin | ||
|  | ||
| - name: Create GitHub Release | ||
| uses: actions/create-release@v1 | 
    
      
    
      Copilot
AI
    
    
    
      Oct 12, 2025 
    
  
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.
The actions/create-release@v1 action is deprecated. Use softprops/action-gh-release@v1 or the newer gh CLI commands instead for better security and maintenance.
| - name: Update parent POM versions in modules | ||
| run: | | ||
| # Update parent version in all child POMs | ||
| for pom in custom-checks/pom.xml custom-checks/checkstyle/pom.xml custom-checks/findbugs/pom.xml custom-checks/pmd/pom.xml sat-extension/pom.xml sat-plugin/pom.xml codestyle/pom.xml; do | 
    
      
    
      Copilot
AI
    
    
    
      Oct 12, 2025 
    
  
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.
The POM file list is duplicated in two locations. Consider extracting this list to an environment variable or using a find command to avoid duplication and make maintenance easier.
| for pom in custom-checks/pom.xml custom-checks/checkstyle/pom.xml custom-checks/findbugs/pom.xml custom-checks/pmd/pom.xml sat-extension/pom.xml sat-plugin/pom.xml codestyle/pom.xml; do | |
| for pom in $(find custom-checks sat-extension sat-plugin codestyle -name pom.xml); do | 
| - name: Update parent POM versions in modules to snapshot | ||
| run: | | ||
| # Update parent version in all child POMs | ||
| for pom in custom-checks/pom.xml custom-checks/checkstyle/pom.xml custom-checks/findbugs/pom.xml custom-checks/pmd/pom.xml sat-extension/pom.xml sat-plugin/pom.xml codestyle/pom.xml; do | 
    
      
    
      Copilot
AI
    
    
    
      Oct 12, 2025 
    
  
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.
The POM file list is duplicated in two locations. Consider extracting this list to an environment variable or using a find command to avoid duplication and make maintenance easier.
| git add pom.xml | ||
| git add custom-checks/pom.xml | ||
| git add custom-checks/checkstyle/pom.xml | ||
| git add custom-checks/findbugs/pom.xml | ||
| git add custom-checks/pmd/pom.xml | ||
| git add sat-extension/pom.xml | ||
| git add sat-plugin/pom.xml | ||
| git add codestyle/pom.xml | 
    
      
    
      Copilot
AI
    
    
    
      Oct 12, 2025 
    
  
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.
The git add commands for POM files are duplicated. This creates a third instance of the same file list, making maintenance difficult. Consider using git add *.xml **/*.xml or a similar pattern to automatically include all POM files.
| git add pom.xml | |
| git add custom-checks/pom.xml | |
| git add custom-checks/checkstyle/pom.xml | |
| git add custom-checks/findbugs/pom.xml | |
| git add custom-checks/pmd/pom.xml | |
| git add sat-extension/pom.xml | |
| git add sat-plugin/pom.xml | |
| git add codestyle/pom.xml | |
| git add **/pom.xml | 
| # Add all modified POM files | ||
| git add pom.xml | ||
| git add custom-checks/pom.xml | ||
| git add custom-checks/checkstyle/pom.xml | ||
| git add custom-checks/findbugs/pom.xml | ||
| git add custom-checks/pmd/pom.xml | ||
| git add sat-extension/pom.xml | ||
| git add sat-plugin/pom.xml | ||
| git add codestyle/pom.xml | 
    
      
    
      Copilot
AI
    
    
    
      Oct 12, 2025 
    
  
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.
The git add commands for POM files are duplicated. This creates a third instance of the same file list, making maintenance difficult. Consider using git add *.xml **/*.xml or a similar pattern to automatically include all POM files.
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.
Looks like a nice way for being able to do SAT releases using GHA! The only improvement I saw is what Copilot also found, i.e. more generically handling POM files. But maybe there are some pom.xml files also used in tests making it less straight forward?
Did you also consider using the maven-release-plugin? It also checks if there are any snapshot dependencies before doing a release. We can always still use that in a follow up PR of course. 😉
No description provided.