From 34eb91cbb88a5d9ab47684320cedd2df0f583342 Mon Sep 17 00:00:00 2001 From: Jose Riguera Date: Thu, 28 Mar 2024 11:34:27 +0100 Subject: [PATCH] more debug --- .github/workflows/release-final-boshrelease.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-final-boshrelease.yml b/.github/workflows/release-final-boshrelease.yml index 728e7b4..d18ed44 100644 --- a/.github/workflows/release-final-boshrelease.yml +++ b/.github/workflows/release-final-boshrelease.yml @@ -54,20 +54,22 @@ jobs: if [[ "${tag#v}" =~ ^([0-9]+\.){0,2}(\*|[0-9]+)$ ]] then # Tag is a version, create it with this vesion + echo "Using provided version from the tag (tag=$tag)" bosh create-release --final --tarball="$GITHUB_WORKSPACE/.build/$RELEASE.tgz" --version "${tag#v}" else - # Tag is not a version, major version + # Tag is not a version, bosh will increase the minor version automatically + echo "Tag does not match version (tag=$tag). Let bosh to calculate the next one" bosh create-release --final --tarball="$GITHUB_WORKSPACE/.build/$RELEASE.tgz" fi - echo "type=final" >> $GITHUB_OUTPUT + echo "type=final" | tee -a >> $GITHUB_OUTPUT else # the trigger does not come from a tag. Not a final version bosh create-release --tarball="$GITHUB_WORKSPACE/.build/$RELEASE.tgz" - echo "type=dev" >> $GITHUB_OUTPUT + echo "type=dev" | tee -a $GITHUB_OUTPUT fi version=$(ls releases/$RELEASE/$RELEASE-*.yml | sed 's/.*\/.*-\(.*\)\.yml$/\1/' | sort -t. -k 1,1nr -k 2,2nr | head -1) - echo "version=${version}" >> $GITHUB_OUTPUT - echo "file=$GITHUB_WORKSPACE/.build/$RELEASE.tgz" >> $GITHUB_OUTPUT + echo "version=${version}" | tee -a $GITHUB_OUTPUT + echo "file=$GITHUB_WORKSPACE/.build/$RELEASE.tgz" | tee -a $GITHUB_OUTPUT - name: Uploads artifact release uses: actions/upload-artifact@v4