Skip to content

Commit

Permalink
Update actions/upload-artifact and actions/download-artifact together (
Browse files Browse the repository at this point in the history
…#680)

Bump them up from v3 to v4.

Also try to configure Dependabot to update them as a group in the
future.

Signed-off-by: Yun-Tang Hsu <[email protected]>
  • Loading branch information
yuntanghsu authored Jan 10, 2024
1 parent 77ef924 commit ef5123d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 22 deletions.
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,8 @@ updates:
schedule:
interval: "daily"
open-pull-requests-limit: 5
groups:
artifact-actions:
patterns:
- "actions/upload-artifact"
- "actions/download-artifact"
2 changes: 1 addition & 1 deletion .github/workflows/golicense.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
./ci/golicense/run.sh ./theia-bins ./license-reports
- name: Upload licensing information
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: licenses.deps
path: license-reports/ALL.deps.txt
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Save Spark jobs image to tarball
run: docker save -o spark-jobs.tar antrea/theia-spark-jobs
- name: Upload Spark jobs image for subsequent jobs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: spark-jobs
path: spark-jobs.tar
Expand All @@ -57,7 +57,7 @@ jobs:
- name: Save ClickHouse monitor image to tarball
run: docker save -o clickhouse-monitor.tar antrea/theia-clickhouse-monitor
- name: Upload ClickHouse monitor image for subsequent jobs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: clickhouse-monitor
path: clickhouse-monitor.tar
Expand All @@ -74,7 +74,7 @@ jobs:
- name: Save ClickHouse server image to tarball
run: docker save -o clickhouse-server.tar antrea/theia-clickhouse-server
- name: Upload ClickHouse server image for subsequent jobs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: clickhouse-server
path: clickhouse-server.tar
Expand All @@ -91,7 +91,7 @@ jobs:
- name: Save Theia Manager image to tarball
run: docker save -o theia-manager.tar antrea/theia-manager
- name: Upload Theia Manager image for subsequent jobs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: theia-manager
path: theia-manager.tar
Expand Down Expand Up @@ -122,19 +122,19 @@ jobs:
with:
go-version-file: 'go.mod'
- name: Download Spark jobs images from previous jobs
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: spark-jobs
- name: Download ClickHouse monitor images from previous jobs
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: clickhouse-monitor
- name: Download ClickHouse server images from previous jobs
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: clickhouse-server
- name: Download Theia Manager images from previous jobs
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: theia-manager
- name: Load Theia image
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
flags: kind-e2e-tests
name: codecov-kind-e2e-test
- name: Upload test log
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: e2e-kind-fa.tar.gz
Expand Down Expand Up @@ -204,11 +204,11 @@ jobs:
with:
go-version-file: 'go.mod'
- name: Download ClickHouse monitor images from previous jobs
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: clickhouse-monitor
- name: Download ClickHouse server images from previous jobs
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: clickhouse-server
- name: Load Theia image
Expand Down Expand Up @@ -242,7 +242,7 @@ jobs:
flags: kind-multi-cluster-e2e-tests
name: codecov-multi-cluster-kind-e2e-test
- name: Upload test log
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: e2e-kind-multi-cluster.tar.gz
Expand Down Expand Up @@ -277,19 +277,19 @@ jobs:
with:
go-version-file: 'go.mod'
- name: Download Spark jobs images from previous jobs
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: spark-jobs
- name: Download ClickHouse monitor images from previous jobs
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: clickhouse-monitor
- name: Download ClickHouse server images from previous jobs
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: clickhouse-server
- name: Download Theia Manager images from previous jobs
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: theia-manager
- name: Load Theia image
Expand Down Expand Up @@ -321,7 +321,7 @@ jobs:
if: ${{ failure() }}
run: tar -czf log.tar.gz log
- name: Upload test log
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: upgrade-from-theia-version-n-1.tar.gz
Expand Down Expand Up @@ -353,11 +353,11 @@ jobs:
with:
go-version-file: 'go.mod'
- name: Download ClickHouse monitor images from previous jobs
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: clickhouse-monitor
- name: Download ClickHouse server images from previous jobs
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: clickhouse-server
- name: Load Theia clickhouse images
Expand All @@ -383,7 +383,7 @@ jobs:
if: ${{ failure() }}
run: tar -czf log.tar.gz log
- name: Upload test log
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: migrate-clickhouse-from-theia-version-n-1.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trivy_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
format: 'table'
output: 'trivy.${{ matrix.image }}.${{ matrix.version }}.txt'
- name: Upload Trivy scan report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: trivy-scan-reports
path: trivy.*.txt
Expand Down

0 comments on commit ef5123d

Please sign in to comment.