diff options
author | Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> | 2022-11-29 19:03:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-29 19:03:46 +0100 |
commit | 40499a40844178c9fc5ceebc9b81cdd509c78924 (patch) | |
tree | 3afbfff95ee0f30f112add06cd8bcfa8f8e61cbf /.github/workflows/upload_schema.yml | |
parent | Install sosreport controller plugin into proper path (#12036) (diff) | |
download | awx-40499a40844178c9fc5ceebc9b81cdd509c78924.tar.xz awx-40499a40844178c9fc5ceebc9b81cdd509c78924.zip |
prevent unsupported locale setting error in GHA
related to https://github.com/ansible/ansible/pull/78175
the way the GHA runner is built, Python runs with a mixed locale between the FS bits and the default encoding, which can cause unpredictable issues
adding env var `LC_ALL: "C.UTF-8"` prevent flakiness due to locale issue
Signed-off-by: Hao Liu <haoli@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/upload_schema.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/upload_schema.yml b/.github/workflows/upload_schema.yml index 8f258dd7c1..4c7349abbc 100644 --- a/.github/workflows/upload_schema.yml +++ b/.github/workflows/upload_schema.yml @@ -1,5 +1,9 @@ --- name: Upload API Schema + +env: + LC_ALL: "C.UTF-8" # prevent ERROR: Ansible could not initialize the preferred locale: unsupported locale setting + on: push: branches: |