From f94d972997b6630e4ec36f498147913164c6bbfc Mon Sep 17 00:00:00 2001 From: vankichi Date: Mon, 21 Oct 2024 17:25:59 +0900 Subject: [PATCH] :green_heart: Update make commands Signed-off-by: vankichi --- .github/workflows/update-actions.yaml | 64 --------------------------- .github/workflows/update-deps.yaml | 11 ++++- Makefile | 1 + 3 files changed, 11 insertions(+), 65 deletions(-) delete mode 100644 .github/workflows/update-actions.yaml diff --git a/.github/workflows/update-actions.yaml b/.github/workflows/update-actions.yaml deleted file mode 100644 index 85009818898..00000000000 --- a/.github/workflows/update-actions.yaml +++ /dev/null @@ -1,64 +0,0 @@ -# -# 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: Update Actions version -on: - workflow_dispatch: - schedule: - - cron: "0 0 * * *" -jobs: - dump-contexts-to-log: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: vdaas/vald/.github/actions/dump-context@main - update-version: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - token: ${{ secrets.DISPATCH_TOKEN }} - - name: Set Git config - run: | - git config --global --add safe.directory ${GITHUB_WORKSPACE} - - uses: crazy-max/ghaction-import-gpg@v6 - with: - gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} - git_user_signingkey: true - git_commit_gpgsign: true - - name: Run update command - run: | - make update/actions - - name: Check difference - id: check_diff - run: | - if git diff --quiet --exit-code; then - echo "Nothing updated" - else - git diff && git status - echo "HAS_GIT_DIFF=true" >> $GITHUB_OUTPUT - fi - - name: Create PR - if: ${{ steps.check_diff.outputs.HAS_GIT_DIFF == 'true' }} - uses: peter-evans/create-pull-request@v7 - with: - author: "${{ secrets.DISPATCH_USER }} " - token: ${{ secrets.DISPATCH_TOKEN }} - committer: "${{ secrets.DISPATCH_USER }} " - signoff: true - delete-branch: true - base: main - title: "Update Actions dependency" - body: "Automated pull request to update Actions." diff --git a/.github/workflows/update-deps.yaml b/.github/workflows/update-deps.yaml index fe7c6930990..d7a9c7949ef 100644 --- a/.github/workflows/update-deps.yaml +++ b/.github/workflows/update-deps.yaml @@ -40,7 +40,16 @@ jobs: git_commit_gpgsign: true - name: Run update command run: | - make update/libs + make files + make update + make helm/schema/all + make k8s/manifest/update + make k8s/manifest/helm-operator/update + make k8s/manifest/benchmark-operator/update + make helm/docs/vald + make helm/docs/vald-helm-operator + make helm/docs/vald-benchmark-operator + make format - name: Check difference id: check_diff run: | diff --git a/Makefile b/Makefile index 3280bc5f366..5ef0e4042c2 100644 --- a/Makefile +++ b/Makefile @@ -504,6 +504,7 @@ update: \ deps \ update/template \ go/deps \ + go/example/deps \ rust/deps \ format