【问题标题】:Add to the path using Github Actions使用 Github Actions 添加到路径
【发布时间】:2021-02-22 20:26:59
【问题描述】:

当前的add-path 命令将于 11 月 16 日弃用。我尝试按照他们的新instructions 并使用echo "/path/to/dir" >> $GITHUB_PATH 添加路径,但它不起作用。什么是正确的命令?我正在 Windows 上构建。

我在 github 操作上看到的错误是 Error: The add-path command is deprecated and will be disabled on November 16th. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

【问题讨论】:

    标签: github github-actions


    【解决方案1】:

    找到答案,这对我来说在 Windows 中有效

    echo "C:/Program Files (x86)/Etc" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8

    【讨论】:

      猜你喜欢
      • 2021-04-04
      • 2021-04-25
      • 2020-08-21
      • 2020-11-18
      • 2021-12-29
      • 1970-01-01
      • 2020-01-19
      • 1970-01-01
      • 2020-07-30
      相关资源
      最近更新 更多