From fa5c53374a1dd5b179798f663281d04f0ed26af5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E6=9C=A8=E7=9A=84=E6=9C=A8=E5=A4=B4?= <ok@xjiangwei.cn> Date: Wed, 30 Aug 2023 20:53:14 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 44409d8..f616a1c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,13 +17,13 @@ jobs: steps: - name: Get version id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> ${GITHUB_ENV} - uses: actions/checkout@v3 - name: set lower case repository name run: | - echo "REPOSITORY_LC=${REPOSITORY,,}" >>${GITHUB_ENV} + echo "REPOSITORY_LC=${REPOSITORY,,}" >> ${GITHUB_ENV} env: REPOSITORY: '${{ github.repository }}' @@ -40,5 +40,5 @@ jobs: context: . push: true tags: | - ${{ env.REGISTRY }}/${{ env.REPOSITORY_LC }}:${{ steps.get_version.outputs.VERSION }} + ${{ env.REGISTRY }}/${{ env.REPOSITORY_LC }}:${{ env.VERSION }} ${{ env.REGISTRY }}/${{ env.REPOSITORY_LC }}:latest