From bf3dc06636d8b0381c83b69ccd6e6bc8c2787bf7 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Tue, 24 Nov 2020 09:07:50 +0100 Subject: [PATCH] github: fix apidiff check The ::add-path:: command was disabled (https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/). One possible replacement should be to modify the content of $GITHUB_ENV (https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable). --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b1627ceca..b02708335 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,7 +39,7 @@ jobs: with: go-version: 1.13.x - name: Add GOBIN to PATH - run: echo "::add-path::$(go env GOPATH)/bin" + run: echo "PATH=$(go env GOPATH)/bin:$PATH" >>$GITHUB_ENV - name: Install dependencies run: GO111MODULE=off go get golang.org/x/exp/cmd/apidiff - name: Checkout old code