From e2b5080aaece1bd89a3fcf22ea630fe085079faf Mon Sep 17 00:00:00 2001 From: Ali Sajid Imami <395482+AliSajid@users.noreply.github.com> Date: Fri, 10 May 2024 23:26:44 -0400 Subject: [PATCH] ci: update the release creation step to get the correct tag version -- try 2 Signed-off-by: Ali Sajid Imami <395482+AliSajid@users.noreply.github.com> --- .github/workflows/create_github_release.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/create_github_release.yaml b/.github/workflows/create_github_release.yaml index 805ecd5..1026f29 100644 --- a/.github/workflows/create_github_release.yaml +++ b/.github/workflows/create_github_release.yaml @@ -23,13 +23,11 @@ jobs: - name: Checkout uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 - name: Get most recent tag - id: get_tag - run: echo "tag_version=$(git describe --tags --abbrev=0)" >> "$GITHUB_OUTPUT" + run: echo "TAG_VERSION=$(git describe --tags --abbrev=0)" >> "$GITHUB_ENV" - name: Create Release id: create_release env: GITHUB_TOKEN: ${{ github.token }} - TAG_VERSION: ${{ steps.get_tag.outputs.tag_version }} run: | echo "Creating release for tag $TAG_VERSION" gh release create $TAG_VERSION --title "Release $TAG_VERSION" --notes "Release $TAG_VERSION" --target devel