Skip to content

Commit

Permalink
feat: always output version
Browse files Browse the repository at this point in the history
always print versions to output regardless of new release or not
  • Loading branch information
bateau84 committed Jul 3, 2023
1 parent cb5c712 commit 678fb77
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ jobs:
IFS='.' read -r -a VERSION_ARRAY <<< "${VERSION:1}"
echo "new-release-published=${{ steps.release.outputs.new-release-published }}" >> $GITHUB_OUTPUT
<<<<<<< HEAD
echo "release-version=${VERSION}" >> $GITHUB_OUTPUT
echo "release-major=${VERSION_ARRAY[0]}" >> $GITHUB_OUTPUT
echo "release-minor=${VERSION_ARRAY[1]}" >> $GITHUB_OUTPUT
Expand All @@ -217,6 +218,15 @@ jobs:
echo "${{ steps.release.outputs.release-notes }}" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

=======
echo "release-version=${VERSION:1}" >> $GITHUB_OUTPUT
echo "release-major=${VERSION_ARRAY[0]}" >> $GITHUB_OUTPUT
echo "release-minor=${VERSION_ARRAY[1]}" >> $GITHUB_OUTPUT
echo "release-patch=${VERSION_ARRAY[2]}" >> $GITHUB_OUTPUT
echo "release-notes<<EOF" >> $GITHUB_OUTPUT
echo ${{ steps.release.outputs.release-notes }} >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
>>>>>>> ec2b44a (feat: always output version)
echo "type=${{ steps.release.outputs.type }}" >> $GITHUB_OUTPUT
echo "channel=${{ steps.release.outputs.channel }}" >> $GITHUB_OUTPUT
echo "git-head=${{ steps.release.outputs.git-head }}" >> $GITHUB_OUTPUT
Expand All @@ -228,11 +238,17 @@ jobs:
echo "release-major=${{ steps.release.outputs.release-major }}" >> $GITHUB_OUTPUT
echo "release-minor=${{ steps.release.outputs.release-minor }}" >> $GITHUB_OUTPUT
echo "release-patch=${{ steps.release.outputs.release-patch }}" >> $GITHUB_OUTPUT
<<<<<<< HEAD

echo "release-notes<<EOF" >> $GITHUB_OUTPUT
echo "${{ steps.release.outputs.release-notes }}" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

=======
echo "release-notes<<EOF" >> $GITHUB_OUTPUT
echo ${{ steps.release.outputs.release-notes }} >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
>>>>>>> ec2b44a (feat: always output version)
echo "type=${{ steps.release.outputs.type }}" >> $GITHUB_OUTPUT
echo "channel=${{ steps.release.outputs.channel }}" >> $GITHUB_OUTPUT
echo "git-head=${{ steps.release.outputs.git-head }}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 678fb77

Please sign in to comment.