Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【engine】使用 env 上下文访问系统环境变量值 #112

Open
heimanba opened this issue Apr 12, 2023 · 0 comments
Open

【engine】使用 env 上下文访问系统环境变量值 #112

heimanba opened this issue Apr 12, 2023 · 0 comments

Comments

@heimanba
Copy link
Member

heimanba commented Apr 12, 2023

变量

获取当前系统环境变量

steps:
  - run: echo $PATH

使用 env 上下文访问环境变量值

允许上下文设置和读取 env 键值,再步骤(Steps)内部之间共享变量

steps:
  - run: env.firstName=dankun
  - run: echo ${{ env.firstName }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant