From f104ffd0c910263afd6c39c3a916bbe7ebbf75bc Mon Sep 17 00:00:00 2001 From: Yuta Kasai Date: Mon, 25 Nov 2024 23:50:34 +0900 Subject: [PATCH] Update generated-code.yml --- .github/workflows/generated-code.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generated-code.yml b/.github/workflows/generated-code.yml index 3e11d66a..92d185a9 100644 --- a/.github/workflows/generated-code.yml +++ b/.github/workflows/generated-code.yml @@ -28,8 +28,8 @@ jobs: diff=$(git --no-pager diff --name-only HEAD) echo "DIFF_IS_EMPTY=$([[ -z "$diff" ]] && echo 'true' || echo 'false')" >> $GITHUB_ENV echo "CURRENT_DATETIME=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV - ## Run if diff exists and pull request, and make CI status failure - - if: ${{ github.event_name == 'pull_request' && env.DIFF_IS_EMPTY != 'true' }} + ## Run if diff exists and pull request, and make CI status failure (but allow renovate bot) + - if: ${{ github.event_name == 'pull_request' && env.DIFF_IS_EMPTY != 'true' && github.actor != 'renovate[bot]' }} run: | echo "There are changes in the generated codes. Please run 'generate-code.py' and commit the changes." >&2 exit 1