From da540bd841544dcf32d086072aaf2b2d4c719731 Mon Sep 17 00:00:00 2001 From: Enguerrand Allamel Date: Tue, 27 Aug 2024 16:45:16 +0200 Subject: [PATCH] chore: Refactor release.yaml workflow and add debug output --- .github/workflows/release.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2ba7b23..848e280 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -68,9 +68,12 @@ jobs: echo "${{ steps.release.outputs.tag_name }}" echo "${{ steps.release.outputs.paths_released }}" echo "${{ steps.release.outputs.paths_released[0] }}" - echo "${{ steps.release.outputs.paths_released[0] }}-minor" - echo "${{ steps.release.outputs.paths_released[0] }}-major" - echo "${{ steps.release.outputs.paths_released[0] }}-tagname" + path_release="${{ steps.release.outputs.paths_released[0] }}" + path_clean=$(echo $paths_released | jq -r '.[0]') + echo $path_clean + tag_name_key="${path_clean}--tag_name" + tag_name=$(eval echo "\${{ steps.previous_step.outputs.$tag_name_key }}") + echo "tag_name" - name: "[Release] Checkout code" if: ${{ steps.release.outputs.releases_created }} uses: actions/checkout@v4