Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 12, 2025

The release workflow (build-plugin.yml) was failing to build the plugin due to incorrect artifact paths and missing build infrastructure setup. Additionally, kotlin-ci.yml was running on all commits, wasting CI resources.

Changes

build-plugin.yml (release workflow)

  • Fix artifact paths: plugin/build/distributions/*.zipide-plugins/build/distributions/*.zip
  • Add Gradle wrapper setup step (matches kotlin-ci.yml approach)
  • Add Gradle caching with consistent cache keys
  • Use working-directory: ide-plugins throughout
  • Update actions to v4 (checkout, setup-java, cache, upload-artifact)
  • Add permissions: contents: write for release uploads

kotlin-ci.yml (PR/push workflow)

  • Add paths: ['ide-plugins/**'] filter to pull_request and push triggers
  • Workflow now only runs when ide-plugins files change

Example

# Before: runs on all commits
on:
  pull_request:
    types: [opened, synchronize, reopened]
  push:
    branches: [ "main" ]

# After: only runs when ide-plugins files change
on:
  pull_request:
    types: [opened, synchronize, reopened]
    paths:
      - 'ide-plugins/**'
  push:
    branches: [ "main" ]
    paths:
      - 'ide-plugins/**'
Original prompt

when releasing a new version the plugin is not build as the ci is not aligned with the kotlin-ci.yml file
also kotlin-ci should be executed only if the ide-plugins file are changed in the commit


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

- Update build-plugin.yml to align with kotlin-ci.yml build process
- Fix plugin artifact path from plugin/ to ide-plugins/
- Add gradle wrapper setup, caching, and consistent build steps
- Add path filter to kotlin-ci.yml to only run on ide-plugins changes
- Update action versions to v4 for consistency

Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CI alignment issue with kotlin-ci.yml Fix CI workflows: align build-plugin.yml with kotlin-ci.yml and add path filtering Nov 12, 2025
Copilot AI requested a review from Mte90 November 12, 2025 11:07
Copilot finished work on behalf of Mte90 November 12, 2025 11:07
@Mte90 Mte90 marked this pull request as ready for review November 12, 2025 11:08
@Mte90 Mte90 merged commit dce2446 into master Nov 12, 2025
@Mte90 Mte90 deleted the copilot/fix-ci-alignment-issue branch November 17, 2025 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants