From b1eac1e36f6069895e4f3b5e6ed5c78e57d9e3c0 Mon Sep 17 00:00:00 2001 From: Hiroto Funakoshi Date: Thu, 23 May 2024 15:31:19 +0900 Subject: [PATCH] Add workflow to backport dependency update pr to release branch (#293) * fix: branch naming of deps update pr Signed-off-by: hlts2 * feat: add workflow to backport deps update pr Signed-off-by: hlts2 --------- Signed-off-by: hlts2 --- .github/workflows/backport-deps.yaml | 26 ++++++++++++++++++++ .github/workflows/update-deps.yaml | 1 + .github/workflows/update-gradle-wrapper.yaml | 4 ++- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/backport-deps.yaml diff --git a/.github/workflows/backport-deps.yaml b/.github/workflows/backport-deps.yaml new file mode 100644 index 00000000..42bbae9a --- /dev/null +++ b/.github/workflows/backport-deps.yaml @@ -0,0 +1,26 @@ +# +# Copyright (C) 2019-2024 vdaas.org vald team +# +# Licensed 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 +# +# https://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: "Run backport deps update PR" +on: + push: + branches: + - main +jobs: + backport: + uses: vdaas/vald-client-ci/.github/workflows/_backport-deps.yaml@main + secrets: + CI_TOKEN: ${{ secrets.CI_TOKEN }} + GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} diff --git a/.github/workflows/update-deps.yaml b/.github/workflows/update-deps.yaml index 51b9b9c0..8abd9b6d 100644 --- a/.github/workflows/update-deps.yaml +++ b/.github/workflows/update-deps.yaml @@ -24,6 +24,7 @@ jobs: uses: vdaas/vald-client-ci/.github/workflows/_update-deps.yaml@main with: config_file_path: .github/dependabot-cli.yaml + pr_branch_name: chore/update-gradle secrets: CI_USER: ${{ secrets.CI_USER }} CI_TOKEN: ${{ secrets.CI_TOKEN }} diff --git a/.github/workflows/update-gradle-wrapper.yaml b/.github/workflows/update-gradle-wrapper.yaml index 8629e2a2..6344e10f 100644 --- a/.github/workflows/update-gradle-wrapper.yaml +++ b/.github/workflows/update-gradle-wrapper.yaml @@ -82,8 +82,10 @@ jobs: author: "${{ secrets.CI_USER }} " token: ${{ secrets.CI_TOKEN }} committer: "${{ secrets.CI_USER }} " + commit-message: "automated change" signoff: true delete-branch: true + branch: chore/update-gradle-wrapper base: main - title: "Bump Gradle Wrapper to ${{ steps.gradle_info.outputs.LATEST_VERSION }}" + title: "chore(deps): bump Gradle Wrapper to ${{ steps.gradle_info.outputs.LATEST_VERSION }}" body: "Automated pull request to update Gradle Wrapper."