Skip to content

Commit e6ca247

Browse files
authored
fix: github ci upload-artifact (#1692)
1 parent 47c916d commit e6ca247

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/flakeFinder.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ jobs:
2323
env:
2424
AWS_REGION: us-west-2
2525
- name: Upload Errors
26-
uses: actions/upload-artifact@v3
26+
uses: actions/upload-artifact@v4
2727
with:
2828
name: Flaky test results
2929
path: failed_tests/
30+
overwrite: true
3031
continue-on-error: true

.github/workflows/maven.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,19 @@ jobs:
4848
sudo chown -R runner target
4949
if: matrix.os == 'ubuntu-20.04'
5050
- name: Upload Failed Test Report
51-
uses: actions/upload-artifact@v3
51+
uses: actions/upload-artifact@v4
5252
if: failure()
5353
with:
5454
name: Failed Test Report ${{ matrix.os }}
5555
path: target/surefire-reports
56+
overwrite: true
5657
- name: Upload Coverage
57-
uses: actions/upload-artifact@v3
58+
uses: actions/upload-artifact@v4
5859
if: matrix.os == 'ubuntu-20.04'
5960
with:
6061
name: Coverage Report ${{ matrix.os }}
6162
path: target/jacoco-report
63+
overwrite: true
6264
- name: Convert Jacoco unit test report to Cobertura
6365
run: python3 .github/scripts/cover2cover.py target/jacoco-report/jacoco.xml src/main/java > target/jacoco-report/cobertura.xml
6466
if: matrix.os == 'ubuntu-20.04'
@@ -70,10 +72,11 @@ jobs:
7072
mvn -ntp japicmp:cmp -DskipTests
7173
if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-20.04'
7274
- name: Upload Compatibility Report
73-
uses: actions/upload-artifact@v3
75+
uses: actions/upload-artifact@v4
7476
with:
7577
name: Binary Compatibility Report
7678
path: target/japicmp/default-cli.html
79+
overwrite: true
7780
if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-20.04'
7881
- name: Build benchmark with Maven
7982
# Changes can break the benchmark, so compile it now to make sure it is buildable
@@ -94,8 +97,9 @@ jobs:
9497
cp target/jacoco-report/cobertura-it.xml ./pr/jacoco-report/cobertura-it.xml
9598
if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-20.04'
9699
- name: Upload files
97-
uses: actions/upload-artifact@v3
100+
uses: actions/upload-artifact@v4
98101
with:
99102
name: pr
100103
path: pr/
104+
overwrite: true
101105
if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-20.04'

0 commit comments

Comments
 (0)