小编edb*_*rns的帖子

GitHub Actions: env: Use pre-defined environment variables on RHS within env section

I would like to declare some environment variables in a top level env section in my main.yml whose values use some pre-defined environment variables such as those documented in the GitHub Actions documentation. However, it appears I cannot use those pre-defined variables in the right hand side of my env section. For example:

env:
  resourceGroup: ${GITHUB_RUN_ID}${GITHUB_RUN_NUMBER}
Run Code Online (Sandbox Code Playgroud)

Is there a way to make it so any step that needs ${resourceGroup} can get it without having to manually define it within …

github-actions

3
推荐指数
1
解决办法
4295
查看次数

标签 统计

github-actions ×1