Skip to content

🔨 Fix commit_in_place passed via env variable in translate.yml workflow#15151

Merged
YuriiMotov merged 1 commit intomasterfrom
fix-commit-in-place-passed-via-env-variable
Mar 18, 2026
Merged

🔨 Fix commit_in_place passed via env variable in translate.yml workflow#15151
YuriiMotov merged 1 commit intomasterfrom
fix-commit-in-place-passed-via-env-variable

Conversation

@YuriiMotov
Copy link
Copy Markdown
Member

There seems to be a bug in Click < 8.3.0 that the value of ENV variable is being interpreted incorrectly for bool flags ("false" becomes True).
This leads to our translate.yml workflow to fail with Can't commit directly to master (see https://github.com/fastapi/fastapi/actions/runs/23245751473/job/67573656641)

This bug has been fixed in latest versions of Click, but we can't upgrade due to another bug introduced in Click 8.2.2 and still present in latest version (see #15057 and mkdocs/mkdocs#4032).

I suggest we use a workaround until it has been solved - pass empty value instead of "false".

I checked locally - it works.


Alternatively we can pass commit_in_place in command line instead of using ENV variable

Copy link
Copy Markdown
Member

@tiangolo tiangolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, thanks! 🚀

@YuriiMotov YuriiMotov merged commit 6e5e942 into master Mar 18, 2026
22 checks passed
@YuriiMotov YuriiMotov deleted the fix-commit-in-place-passed-via-env-variable branch March 18, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants