Skip to content

Commit 8429d24

Browse files
committed
Fix failed checkout in archive-examples.yml GH action due to file overwrite
1 parent 062d18c commit 8429d24

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/archive-examples.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,18 @@
1818
- name: Checkout code
1919
uses: actions/checkout@v4
2020

21-
- name: Create android-example archive
21+
- name: Create archives in temp directory
2222
run: |
23+
mkdir -p /tmp/archives
24+
2325
cd examples/android-example
24-
zip -r ../../android-example.zip . -x "*.git*" "build/*" ".gradle/*" "*/build/*"
26+
zip -r /tmp/archives/android-example.zip . -x "*.git*" "build/*" ".gradle/*" "*/build/*"
2527
26-
- name: Create kotlin-dataframe-plugin-gradle-example archive
27-
run: |
28-
cd examples/kotlin-dataframe-plugin-gradle-example
29-
zip -r ../../kotlin-dataframe-plugin-gradle-example.zip . -x "*.git*" "build/*" ".gradle/*" "*/build/*" ".idea/*"
30-
31-
- name: Create kotlin-dataframe-plugin-maven-example archive
32-
run: |
33-
cd examples/kotlin-dataframe-plugin-maven-example
34-
zip -r ../../kotlin-dataframe-plugin-maven-example.zip . -x "*.git*" "target/*" ".idea/*"
28+
cd ../kotlin-dataframe-plugin-gradle-example
29+
zip -r /tmp/archives/kotlin-dataframe-plugin-gradle-example.zip . -x "*.git*" "build/*" ".gradle/*" "*/build/*" ".idea/*"
3530
31+
cd ../kotlin-dataframe-plugin-maven-example
32+
zip -r /tmp/archives/kotlin-dataframe-plugin-maven-example.zip . -x "*.git*" "target/*" ".idea/*"
3633
3734
- name: Checkout example-projects-archives branch
3835
run: |
@@ -51,6 +48,8 @@
5148
run: |
5249
git rm -f *.zip 2>/dev/null || true
5350
51+
cp /tmp/archives/*.zip .
52+
5453
CURRENT_DATE=$(date -u '+%Y-%m-%d %H:%M UTC')
5554
5655
cat > README.md << EOF

0 commit comments

Comments
 (0)