### Why are the changes needed? Recently, GHA fails frequently with downloading engines failure, this adds logs to display the cached engine archives. ### How was this patch tested? I will monitor GHA failure after merging. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #7131 from pan3793/gha-cache. Closes #7131 87a38e0d6 [Cheng Pan] Print cached engine archives Authored-by: Cheng Pan <chengpan@apache.org> Signed-off-by: Cheng Pan <chengpan@apache.org>
31 lines
1.2 KiB
YAML
31 lines
1.2 KiB
YAML
#
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
# this work for additional information regarding copyright ownership.
|
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
# (the "License"); you may not use this file except in compliance with
|
|
# the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
name: cache-engine-archives
|
|
description: 'Cache download engine archives from Apache Archives website used by Maven download plugin'
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Cache Engine Archives
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: /tmp/engine-archives
|
|
key: engine-archives
|
|
- name: Show cached engine archives
|
|
shell: bash
|
|
run: ls -lh /tmp/engine-archives
|