Skip to content

Commit f104ffd

Browse files
authored
Update generated-code.yml
1 parent 42835f1 commit f104ffd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/generated-code.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
diff=$(git --no-pager diff --name-only HEAD)
2929
echo "DIFF_IS_EMPTY=$([[ -z "$diff" ]] && echo 'true' || echo 'false')" >> $GITHUB_ENV
3030
echo "CURRENT_DATETIME=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
31-
## Run if diff exists and pull request, and make CI status failure
32-
- if: ${{ github.event_name == 'pull_request' && env.DIFF_IS_EMPTY != 'true' }}
31+
## Run if diff exists and pull request, and make CI status failure (but allow renovate bot)
32+
- if: ${{ github.event_name == 'pull_request' && env.DIFF_IS_EMPTY != 'true' && github.actor != 'renovate[bot]' }}
3333
run: |
3434
echo "There are changes in the generated codes. Please run 'generate-code.py' and commit the changes." >&2
3535
exit 1

0 commit comments

Comments
 (0)