Skip to content

Commit 944a3e2

Browse files
committed
BUG: Work around CI environmental variable setting
To address: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ Error: Unable to process command '::set-env name=LC_ALL::en_US.UTF-8' successfully. Error: The `set-env` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ Error: Unable to process command '::set-env name=LANG::en_US.UTF-8' successfully. Error: The `set-env` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ Error: Unable to process command '::set-env name=LANGUAGE::en_US.UTF-8' successfully. Error: The `set-env` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
1 parent 3fda610 commit 944a3e2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Build
22

33
on: [push,pull_request]
44

5+
env:
6+
LC_ALL: en_US.UTF-8
7+
LANG: en_US.UTF-8
8+
LANGUAGE: en_US.UTF-8
9+
510
jobs:
611
build-publish-pdf:
712
runs-on: ubuntu-18.04
@@ -43,11 +48,6 @@ jobs:
4348
sudo locale-gen
4449
sudo sed -i 's/none/read|write/' /etc/ImageMagick-6/policy.xml
4550
sudo apt-get clean
46-
- name: Set environmental variables
47-
run: |
48-
echo '::set-env name=LC_ALL::en_US.UTF-8'
49-
echo '::set-env name=LANG::en_US.UTF-8'
50-
echo '::set-env name=LANGUAGE::en_US.UTF-8'
5151
5252
- name: Build
5353
run: |

0 commit comments

Comments
 (0)