Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jriguera committed Mar 28, 2024
1 parent 03a562d commit 34eb91c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release-final-boshrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34eb91c

Please sign in to comment.