Increase the Log Depth on build - Release

Also update the build name format
This commit is contained in:
Sebastien
2020-10-27 09:07:57 -04:00
parent f1232eb83a
commit 14f1e00540

View File

@@ -33,6 +33,7 @@ jobs:
echo "build_version_prefix=V0." >> $GITHUB_ENV echo "build_version_prefix=V0." >> $GITHUB_ENV
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
fetch-depth: 15
submodules: true submodules: true
- name: Cache build - name: Cache build
id: cache-build id: cache-build
@@ -47,11 +48,11 @@ jobs:
branch_name="${branch_name//[^a-zA-Z0-9\-~!@_\.]/}" branch_name="${branch_name//[^a-zA-Z0-9\-~!@_\.]/}"
BUILD_NUMBER=${{ needs.job1.outputs.build_number }} BUILD_NUMBER=${{ needs.job1.outputs.build_number }}
echo "BUILD_NUMBER=${BUILD_NUMBER}" >> $GITHUB_ENV echo "BUILD_NUMBER=${BUILD_NUMBER}" >> $GITHUB_ENV
tag="${build_version_prefix}${BUILD_NUMBER}-${TARGET_BUILD_NAME}-${branch_name}" tag="${TARGET_BUILD_NAME}-development-${BUILD_NUMBER}-${branch_name}"
echo "tag=${tag}" >> $GITHUB_ENV echo "tag=${tag}" >> $GITHUB_ENV
last_commit="$(git log --pretty=format:'%s' --max-count=1)" last_commit="$(git log --pretty=format:'%s' --max-count=1)"
if [[ "$last_commit" =~ .*"Release".* ]]; then echo "release_flag=1" >> $GITHUB_ENV; else echo "release_flag=0" >> $GITHUB_ENV; fi if [[ "$last_commit" =~ .*"Release".* ]]; then echo "release_flag=1" >> $GITHUB_ENV; else echo "release_flag=0" >> $GITHUB_ENV; fi
name="${build_version_prefix}${BUILD_NUMBER}.${branch_name}#v4.0#${TARGET_BUILD_NAME}#${branch_name}" name="development.${BUILD_NUMBER}#v4.0#${TARGET_BUILD_NAME}#${branch_name}"
artifact_prefix="squeezelite-esp32-${branch_name}-${TARGET_BUILD_NAME}-${build_version_prefix}${BUILD_NUMBER}" artifact_prefix="squeezelite-esp32-${branch_name}-${TARGET_BUILD_NAME}-${build_version_prefix}${BUILD_NUMBER}"
artifact_file_name="${artifact_prefix}.zip" artifact_file_name="${artifact_prefix}.zip"
artifact_bin_file_name="${artifact_prefix}.bin" artifact_bin_file_name="${artifact_prefix}.bin"
@@ -62,10 +63,9 @@ jobs:
description="" description=""
description=${description}$'------------------------------\n### Revision Log\n\n' description=${description}$'------------------------------\n### Revision Log\n\n'
description="$description$(git log --pretty=format:'%h %s (%cI) <%an>' --abbrev-commit --max-count=15 | sed --r 's/(^[\*]+)/\\\1/g') " description="$description$(git log --pretty=format:'%h %s (%cI) <%an>' --abbrev-commit --max-count=15 | sed --r 's/(^[\*]+)/\\\1/g') "
description="${description//'%'/'%25'}" echo 'description<<~EOD' >> $GITHUB_ENV
description="${description//$'\n'/'%0A'}" curl '${description}'>> $GITHUB_ENV
description="${description//$'\r'/'%0D'}" echo '~EOD' >> $GITHUB_ENV
echo "description=${description}" >> $GITHUB_ENV
echo ####### echo #######
echo ####### Release description echo ####### Release description
echo ####### echo #######