5
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2025-11-07 16:06:56 +00:00

ci: replace set-env calls with $GITHUB_ENV file

Due to security reasons, ::set-env command doesn't work anymore. The new method of
updating env vars dynamically is through the $GITHUB_ENV file.
This commit is contained in:
Wagner Santos 2020-11-21 06:31:34 -03:00
parent e14514cdf8
commit 072351755b

View file

@ -51,7 +51,7 @@ jobs:
- name: Set VERSION env var - name: Set VERSION env var
run: | run: |
version=`node -p "require('./package.json').version"` version=`node -p "require('./package.json').version"`
echo "::set-env name=VERSION::$version" echo "VERSION=$version" >> $GITHUB_ENV
- name: Login to docker registry - name: Login to docker registry
env: env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}