From fd5c6d8cc2dbb199513ed29ec4e76459f480343a Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" <6454655+adoroszlai@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:38:37 +0100 Subject: [PATCH] HDDS-11689. Extract scheduled workflow for populate-cache (#7429) --- .github/workflows/populate-cache.yml | 3 +-- .github/workflows/scheduled-cache-update.yml | 27 ++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/scheduled-cache-update.yml diff --git a/.github/workflows/populate-cache.yml b/.github/workflows/populate-cache.yml index cc93390a5bc..5ab9f63118e 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 00000000000..94ac45e785e --- /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