我用javascript写一个Github Action,想在本地运行。然后就参考了官方文档,它是这么说的:
```
When you specify an input, GitHub creates an environment variable for the input with the name INPUT_<VARIABLE_NAME>. The environment variable created converts input names to uppercase letters and replaces spaces with _ characters.
```
我所想不明白的是:我有一个input叫"llvm-version”.我怎么设置都不成功。
正确的env var name应该是: “INPUT_LLVM-VERSION”。 但是bash非说这个环境变量名不符合要求。
后来我明白了,这样的变量名是可以的。只是bash不支持。我写了个python 脚本,用python去运行nodejs并在执行node.exe的同时传入自定义的环境变量就可以了。
--
FROM 115.231.43.*