diff --git a/.github/workflows/populate-cache.yml b/.github/workflows/populate-cache.yml index cc93390a5bc2..5ab9f63118e4 100644 --- a/.github/workflows/populate-cache.yml +++ b/.github/workflows/populate-cache.yml @@ -26,8 +26,7 @@ on: - 'pom.xml' - '**/pom.xml' - '.github/workflows/populate-cache.yml' - schedule: - - cron: '20 3 * * *' + workflow_call: workflow_dispatch: jobs: diff --git a/.github/workflows/scheduled-cache-update.yml b/.github/workflows/scheduled-cache-update.yml new file mode 100644 index 000000000000..94ac45e785e8 --- /dev/null +++ b/.github/workflows/scheduled-cache-update.yml @@ -0,0 +1,27 @@ +# 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. + +# This workflow periodically updates dependency cache. + +name: scheduled-cache-update + +on: + schedule: + - cron: '20 3 * * *' + +jobs: + update: + uses: ./.github/workflows/populate-cache.yml + secrets: inherit