From 15f6800cea18916cab6f3e473e1bfee9d68be26c Mon Sep 17 00:00:00 2001 From: Nikita Klimenko Date: Thu, 18 Dec 2025 20:19:10 +0200 Subject: [PATCH] Fix failed checkout in archive-examples.yml GH action due to file overwrite --- .github/workflows/archive-examples.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/archive-examples.yml b/.github/workflows/archive-examples.yml index 9c292e9658..91f090acea 100644 --- a/.github/workflows/archive-examples.yml +++ b/.github/workflows/archive-examples.yml @@ -18,21 +18,18 @@ - name: Checkout code uses: actions/checkout@v4 - - name: Create android-example archive + - name: Create archives in temp directory run: | + mkdir -p /tmp/archives + cd examples/android-example - zip -r ../../android-example.zip . -x "*.git*" "build/*" ".gradle/*" "*/build/*" + zip -r /tmp/archives/android-example.zip . -x "*.git*" "build/*" ".gradle/*" "*/build/*" - - name: Create kotlin-dataframe-plugin-gradle-example archive - run: | - cd examples/kotlin-dataframe-plugin-gradle-example - zip -r ../../kotlin-dataframe-plugin-gradle-example.zip . -x "*.git*" "build/*" ".gradle/*" "*/build/*" ".idea/*" - - - name: Create kotlin-dataframe-plugin-maven-example archive - run: | - cd examples/kotlin-dataframe-plugin-maven-example - zip -r ../../kotlin-dataframe-plugin-maven-example.zip . -x "*.git*" "target/*" ".idea/*" + cd ../kotlin-dataframe-plugin-gradle-example + zip -r /tmp/archives/kotlin-dataframe-plugin-gradle-example.zip . -x "*.git*" "build/*" ".gradle/*" "*/build/*" ".idea/*" + cd ../kotlin-dataframe-plugin-maven-example + zip -r /tmp/archives/kotlin-dataframe-plugin-maven-example.zip . -x "*.git*" "target/*" ".idea/*" - name: Checkout example-projects-archives branch run: | @@ -51,6 +48,8 @@ run: | git rm -f *.zip 2>/dev/null || true + cp /tmp/archives/*.zip . + CURRENT_DATE=$(date -u '+%Y-%m-%d %H:%M UTC') cat > README.md << EOF