Skip to content

Commit 7e80c5b

Browse files
authored
Use github actor id instead of bot name to avoid renaming issues (#665)
This PR modifies the GitHub Actions workflow to use the GitHub actor ID instead of the bot name. This change helps avoid issues related to renaming the bot, ensuring that the workflow continues to function correctly even if the bot's name changes. See renovatebot/renovate#37842. https://api.github.com/users/renovate%5Bbot%5D > { > "login": "renovate[bot]", > "id": 29139614, > ... > } Parent PR: line/line-bot-sdk-nodejs#1399
1 parent f612334 commit 7e80c5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/generate-code.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ jobs:
4747
echo "DIFF_IS_EMPTY=$([[ -z "$diff_excluding_submodule" ]] && echo 'true' || echo 'false')" >> $GITHUB_ENV
4848
echo "CURRENT_DATETIME=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
4949
## Run if diff exists and pull request or merge queue, and make CI status failure (but allow renovate bot)
50+
## 29139614 is renovate bot's actor id
5051
- if: >-
5152
${{
5253
(github.event_name == 'pull_request' || github.event_name == 'merge_group')
5354
&& env.DIFF_IS_EMPTY != 'true'
54-
&& github.actor != 'renovate[bot]'
55+
&& github.actor_id != '29139614'
5556
}}
5657
run: |
5758
echo "There are changes in the generated codes. Please run 'generate-code.py' and commit the changes." >&2

0 commit comments

Comments
 (0)