Skip to content

Commit

Permalink
chore: Refactor release.yaml workflow and add debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
AEnguerrand committed Aug 27, 2024
1 parent da540bd commit 87543eb
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,24 @@ jobs:
monorepo-tags: true
path: ${{ matrix.component }}
include-v-in-tag: false
- run: |
echo "${{ steps.release.outputs.major }}"
echo "${{ steps.release.outputs.minor }}"
echo "${{ steps.release.outputs.patch }}"
echo "${{ steps.release.outputs.releases_created }}"
echo "${{ steps.release.outputs.tag_name }}"
echo "${{ steps.release.outputs.paths_released }}"
echo "${{ steps.release.outputs.paths_released[0] }}"
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: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
# - run: |
# echo "${{ steps.release.outputs.major }}"
# echo "${{ steps.release.outputs.minor }}"
# echo "${{ steps.release.outputs.patch }}"
# echo "${{ steps.release.outputs.releases_created }}"
# echo "${{ steps.release.outputs.tag_name }}"
# echo "${{ steps.release.outputs.paths_released }}"
# echo "${{ steps.release.outputs.paths_released[0] }}"
# 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
Expand Down

0 comments on commit 87543eb

Please sign in to comment.