Skip to content

Commit

Permalink
Fix set-env deprecation issue in gh-workflows. Closes #1983 (#1984)
Browse files Browse the repository at this point in the history
  • Loading branch information
umesh-timalsina committed Dec 18, 2020
1 parent 1fafcb1 commit ec23bbc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
- name: Get Release Tags
id: get_release_tags
run: |
echo "::set-env name=RELEASE_TAG::$(echo ${GITHUB_REF} | sed -E 's/.*v?([0-9]+)\.([0-9]+)\.([0-9]+)?/\1.\2.\3,\1.\2,\1/')"
echo "::set-env name=TAG::stable"
echo "RELEASE_TAG=$(echo ${GITHUB_REF} | sed -E 's/.*v?([0-9]+)\.([0-9]+)\.([0-9]+)?/\1.\2.\3,\1.\2,\1/')" >> $GITHUB_ENV
echo "TAG=stable" >> $GITHUB_ENV
if: github.event_name == 'release'

- name: Get Push Tags
id: get_push_tags
run: |
echo "::set-env name=TAG::latest"
echo "::set-env name=RELEASE_TAG::$(echo ${GITHUB_REF:11})"
echo "TAG=latest" >> $GITHUB_ENV
echo "RELEASE_TAG=$(echo ${GITHUB_REF:11})" >> $GITHUB_ENV
if: github.event_name == 'push'

- name: Publish to docker hub (server)
Expand Down

0 comments on commit ec23bbc

Please sign in to comment.