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.
This commit is contained in:
parent
8aa6502659
commit
3497008e6c
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user