From 8cbc03566c9c41a6fd4d74ad8cdcadc10e3f69b2 Mon Sep 17 00:00:00 2001 From: Arijit Das Date: Tue, 21 Dec 2021 18:33:52 +0530 Subject: [PATCH] Add github ref name. --- .github/workflows/publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 6be38c3..0b7cdea 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -9,10 +9,10 @@ jobs: steps: - uses: actions/checkout@v2 - name: Get the version - id: vars run: | echo ::set-output name=tag::$(echo ${GITHUB_REF#refs/tags/}) - echo ::set-output name=branch::$(echo ${GITHUB_REF#refs/heads/}) + echo "::set-output name=branch::$(echo ${github.event.release.target_commitish})" + id: vars - name: Docker Login run: echo ${{ secrets.GITHUB_TOKEN }} | docker login https://docker.pkg.github.com -u vulcanize --password-stdin - name: Build and push