Skip to content

Commit bf4255f

Browse files
CopilotMte90
andcommitted
Fix CI error when plugin is already named correctly
- Check if plugin file is already named intellij-plugin.zip before renaming - Use mv instead of cp to avoid duplicate files - Prevents "are the same file" error in CI Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
1 parent 81d64f5 commit bf4255f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/kotlin-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ jobs:
7777
run: |
7878
cd ide-plugins/build/distributions
7979
PLUGIN_FILE=$(ls *.zip | head -n 1)
80-
if [ -n "$PLUGIN_FILE" ]; then
81-
cp "$PLUGIN_FILE" intellij-plugin.zip
80+
if [ -n "$PLUGIN_FILE" ] && [ "$PLUGIN_FILE" != "intellij-plugin.zip" ]; then
81+
mv "$PLUGIN_FILE" intellij-plugin.zip
8282
fi
8383
if: success()
8484

0 commit comments

Comments
 (0)