From 6dc560730379a34c9b49cff8ba5d6748d64d7e56 Mon Sep 17 00:00:00 2001 From: Danila Pokhabov Date: Fri, 4 Jun 2021 03:05:30 +0700 Subject: [PATCH] Update dotnetcore-build-publish.yml --- .github/workflows/dotnetcore-build-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnetcore-build-publish.yml b/.github/workflows/dotnetcore-build-publish.yml index c45e677..241cf9c 100644 --- a/.github/workflows/dotnetcore-build-publish.yml +++ b/.github/workflows/dotnetcore-build-publish.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v1 - name: Get tag version id: get_version - run: echo ::set-env name=TAG_NAME::$(echo ${GITHUB_REF/refs\/tags\//}) + run: echo "TAG_NAME=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Setup .NET Core SDK uses: actions/setup-dotnet@v1 with: @@ -22,7 +22,7 @@ jobs: run: dotnet publish dotnet-app/APIL/WordCounterBot.APIL.WebApi.csproj -c Release -o ./app - name: Build & Publish Docker image if: success() - uses: opspresso/action-docker@v0.2.1 + uses: opspresso/action-docker@v0.2.17 env: USERNAME: ${{ secrets.DOCKER_USERNAME }} PASSWORD: ${{ secrets.DOCKER_PASSWORD }}