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