Skip to content

Commit dea747a

Browse files
cryptobenchclaude
andcommitted
Fix CI: checkout was overwriting downloaded JAR artifact
- Move checkout before artifact download - Download artifact to ./artifacts subdirectory to prevent conflicts Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7191ad6 commit dea747a

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@ jobs:
4040
contents: write
4141

4242
steps:
43+
- name: Checkout for commit info
44+
uses: actions/checkout@v4
45+
with:
46+
fetch-depth: 0
47+
4348
- name: Download artifact
4449
uses: actions/download-artifact@v4
4550
with:
4651
name: EasyWebMap
47-
path: .
52+
path: ./artifacts
4853

4954
- name: List downloaded files
50-
run: ls -la
51-
52-
- name: Checkout for commit info
53-
uses: actions/checkout@v4
54-
with:
55-
fetch-depth: 0
55+
run: ls -la ./artifacts
5656

5757
- name: Generate version
5858
id: version
@@ -68,8 +68,7 @@ jobs:
6868
6969
- name: Rename JAR
7070
run: |
71-
# Find the JAR wherever it is
72-
JAR_FILE=$(find . -name "EasyWebMap-*.jar" -type f | head -1)
71+
JAR_FILE=$(find ./artifacts -name "EasyWebMap-*.jar" -type f | head -1)
7372
echo "Found JAR: $JAR_FILE"
7473
mv "$JAR_FILE" EasyWebMap-${{ steps.version.outputs.version }}.jar
7574

0 commit comments

Comments
 (0)