From 561fa811e520ff0e242a13fed11441d09408c0af Mon Sep 17 00:00:00 2001 From: Yuta Kasai Date: Thu, 18 Sep 2025 23:06:07 +0900 Subject: [PATCH 1/2] NO-ISSUE Use github actor id instead of bot name to avoid renaming issues --- .github/workflows/generate-code.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate-code.yml b/.github/workflows/generate-code.yml index 1a28a193..04d3f1c3 100644 --- a/.github/workflows/generate-code.yml +++ b/.github/workflows/generate-code.yml @@ -65,11 +65,12 @@ jobs: echo "DIFF_IS_EMPTY=$([[ -z "$diff_excluding_submodule" ]] && 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 or merge queue, and make CI status failure (but allow renovate bot) + ## 29139614 is renovate bot's actor id - if: >- ${{ (github.event_name == 'pull_request' || github.event_name == 'merge_group') && env.DIFF_IS_EMPTY != 'true' - && github.actor != 'renovate[bot]' + && github.actor_id != 29139614 }} run: | echo "There are changes in the generated codes. Please run 'generate-code.py' and commit the changes." >&2 From a227e57bbf4ccf1d7e7d8f76b43353cb0a32ebd1 Mon Sep 17 00:00:00 2001 From: Yuta Kasai Date: Fri, 19 Sep 2025 01:18:56 +0900 Subject: [PATCH 2/2] NO-ISSUE to string --- .github/workflows/generate-code.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/generate-code.yml b/.github/workflows/generate-code.yml index 04d3f1c3..d9f9c245 100644 --- a/.github/workflows/generate-code.yml +++ b/.github/workflows/generate-code.yml @@ -70,7 +70,7 @@ jobs: ${{ (github.event_name == 'pull_request' || github.event_name == 'merge_group') && env.DIFF_IS_EMPTY != 'true' - && github.actor_id != 29139614 + && github.actor_id != '29139614' }} run: | echo "There are changes in the generated codes. Please run 'generate-code.py' and commit the changes." >&2