From f7154119914398ad12ccfbd7ba24c7cd50214f4e Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Thu, 15 Oct 2020 10:34:52 +0900 Subject: [PATCH] Use GITHUB_ENV instead of set-env https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ > Action and workflow authors who are setting environment variables via stdout should update any usage of the set-env and add-path workflow commands to use the new environment files. --- .github/workflows/docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 944dd1b32c..106bf9d4b3 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -34,7 +34,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') run: | brew_version=${GITHUB_REF:10} - echo "::set-env name=brew_version::$brew_version" + echo "brew_version=$brew_version" >> ${GITHUB_ENV} echo ${{secrets.HOMEBREW_GITHUB_PACKAGES_API_TOKEN}} | docker login ghcr.io -u BrewTestBot --password-stdin docker tag brew "ghcr.io/homebrew/ubuntu${{matrix.version}}:$brew_version" docker push "ghcr.io/homebrew/ubuntu${{matrix.version}}:$brew_version"