diff options
author | Evan Jones <evan.jones@datadoghq.com> | 2020-11-16 11:56:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 01:56:45 +0900 |
commit | 6da13a7bd97945dfbd2131ba113d94cea503fef4 (patch) | |
tree | a43bc7ee88b401125cce7d0949ea13e03a3ca922 | |
parent | Support vfs for Open (#877) (diff) | |
download | golite-6da13a7bd97945dfbd2131ba113d94cea503fef4.tar.gz golite-6da13a7bd97945dfbd2131ba113d94cea503fef4.tar.xz |
.github/workflows: stop using deprecated add-path command (#873)
Github is disabling the add-path command in workflows on 2020-11-16.
Switch to their new preferred way of doing this, by appending to the
file referred to with $GITHUB_PATH. See:
https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#adding-a-system-path
This should fix the following warning from the workflows:
.github#L1
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/
-rw-r--r-- | .github/workflows/go.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index e55191b..579e9ad 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -33,7 +33,7 @@ jobs: - name: Add $GOPATH/bin to $PATH run: | - echo "::add-path::$(go env GOPATH)/bin" + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - uses: actions/checkout@v2 @@ -88,7 +88,7 @@ jobs: - name: Add $GOPATH/bin to $PATH run: | - echo "::add-path::$(go env GOPATH)/bin" + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH shell: msys2 {0} - uses: actions/checkout@v2 |