Use $GITHUB_ENV [skip ci]

This commit is contained in:
Alex Ling
2020-11-24 13:43:54 +08:00
committed by GitHub
parent 531d42ef18
commit df51406638

View File

@@ -4,14 +4,12 @@ on:
types: [published]
jobs:
update:
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Get release version
id: get_version
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
- name: Publish to Dockerhub
uses: elgohr/Publish-Docker-Github-Action@master
with: