From b36bac1beda8093ab3fcf89c591cf269be8d779f Mon Sep 17 00:00:00 2001 From: Harish P <36042547+Harish4948@users.noreply.github.com> Date: Fri, 11 Oct 2024 18:09:52 +0530 Subject: [PATCH] Fix: context reference --- .github/workflows/create-release.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml index 79eb7cb9..1072b7a1 100644 --- a/.github/workflows/create-release.yaml +++ b/.github/workflows/create-release.yaml @@ -30,7 +30,9 @@ jobs: check-latest: true - id: get-tag name: Get tag - run: echo "tag=$(echo ${{ github.event.pull_request.head.ref }} | sed -e 's/release-//g')" >> $GITHUB_OUTPUT + env: + HEAD_REF: ${{ github.event.pull_request.head.ref }} + run: echo "tag=$(echo $HEAD_REF | sed -e 's/release-//g')" >> $GITHUB_OUTPUT - name: Create tag run: | git tag ${{ steps.get-tag.outputs.tag }}