From 3307f74474d9a335cfa202f7fea9e138125d47ae Mon Sep 17 00:00:00 2001 From: pvyazankin Date: Wed, 1 Oct 2025 16:56:02 +0200 Subject: [PATCH 1/2] MILAB-2153: gitlab for intellij idea --- .gitignore | 44 ++------------------------------------------ 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/.gitignore b/.gitignore index cce4c003..3d930a6f 100644 --- a/.gitignore +++ b/.gitignore @@ -103,48 +103,8 @@ node_modules/ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 -# User-specific stuff -.idea/**/workspace.xml -.idea/**/tasks.xml -.idea/**/usage.statistics.xml -.idea/**/dictionaries -.idea/**/shelf - -# Generated files -.idea/**/contentModel.xml - -# Sensitive or high-churn files -.idea/**/dataSources/ -.idea/**/dataSources.ids -.idea/**/dataSources.local.xml -.idea/**/sqlDataSources.xml -.idea/**/dynamic.xml -.idea/**/uiDesigner.xml -.idea/**/dbnavigator.xml - -# Gradle -.idea/**/gradle.xml -.idea/**/libraries - -# Gradle and Maven with auto-import -# When using Gradle or Maven with auto-import, you should exclude module files, -# since they will be recreated, and may cause churn. Uncomment if using -# auto-import. - .idea/artifacts - .idea/compiler.xml - .idea/jarRepositories.xml - .idea/modules.xml - .idea/*.iml - .idea/modules +# IntelliJ IDEA +.idea/* *.iml *.ipr - -# Mongo Explorer plugin -.idea/**/mongoSettings.xml - -# File-based project format *.iws - -# Editor-based Rest Client -.idea/httpRequests -/.idea/csv-plugin.xml From f89f14bbfd9774bc5f78080bfbe01e6003fa8126 Mon Sep 17 00:00:00 2001 From: Vitalii Popov Date: Thu, 12 Mar 2026 19:07:40 +0100 Subject: [PATCH 2/2] feat: add required target folder --- actions/git/mirror-directory/action.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/actions/git/mirror-directory/action.yaml b/actions/git/mirror-directory/action.yaml index fd2cbda3..2e863058 100644 --- a/actions/git/mirror-directory/action.yaml +++ b/actions/git/mirror-directory/action.yaml @@ -18,6 +18,10 @@ inputs: description: | Token with push access to the target repository. required: true + target-directory: + description: | + Subdirectory inside the target repository to mirror into. + required: true target-branch: description: | Branch to push to in the target repository. @@ -44,11 +48,14 @@ runs: shell: bash env: SOURCE_DIR: ${{ inputs.source-directory }} + TARGET_DIR: ${{ inputs.target-directory }} run: | - # Remove old files in target (except .git) - find /tmp/_mirror-target -mindepth 1 -maxdepth 1 ! -name '.git' -exec rm -rf {} + - # Copy source directory contents to target - cp -a "${SOURCE_DIR}/." /tmp/_mirror-target/ + DEST="/tmp/_mirror-target/${TARGET_DIR}" + mkdir -p "${DEST}" + # Remove old files in destination (except .git) + find "${DEST}" -mindepth 1 -maxdepth 1 ! -name '.git' -exec rm -rf {} + + # Copy source directory contents to destination + cp -a "${SOURCE_DIR}/." "${DEST}/" - name: Commit and push shell: bash