mirror of
https://github.com/phusion/baseimage-docker.git
synced 2026-11-20 09:21:17 +00:00
Improve release warning diagnostics in scheduled build
This commit is contained in:
1 parent
1cf1a20fea
commit
1b42e4a722
1 file changed
+2
-2
@@ -155,12 +155,12 @@ jobs:
|
|||||||
if [ "${GH_RELEASE_EXIT_CODE}" -ne 0 ]; then
|
if [ "${GH_RELEASE_EXIT_CODE}" -ne 0 ]; then
|
||||||
RELEASE_PERMISSION_WARNING="Skipping GitHub release creation for ${{ steps.release.outputs.next_tag }} because the workflow token cannot create releases."
|
RELEASE_PERMISSION_WARNING="Skipping GitHub release creation for ${{ steps.release.outputs.next_tag }} because the workflow token cannot create releases."
|
||||||
IS_PERMISSION_DENIED=false
|
IS_PERMISSION_DENIED=false
|
||||||
if [ "${GH_RELEASE_EXIT_CODE}" -eq 4 ] || (echo "${GH_RELEASE_OUTPUT}" | grep -Eq "HTTP 403|Resource not accessible by integration"); then
|
if [ "${GH_RELEASE_EXIT_CODE}" -eq 4 ] || (echo "${GH_RELEASE_OUTPUT}" | grep -Eqi "HTTP 403|Resource not accessible by integration|permission|denied"); then
|
||||||
IS_PERMISSION_DENIED=true
|
IS_PERMISSION_DENIED=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${IS_PERMISSION_DENIED}" = "true" ]; then
|
if [ "${IS_PERMISSION_DENIED}" = "true" ]; then
|
||||||
echo "::warning::${RELEASE_PERMISSION_WARNING}"
|
echo "::warning::${RELEASE_PERMISSION_WARNING}. gh output: ${GH_RELEASE_OUTPUT}"
|
||||||
else
|
else
|
||||||
echo "::error::${GH_RELEASE_OUTPUT}"
|
echo "::error::${GH_RELEASE_OUTPUT}"
|
||||||
exit ${GH_RELEASE_EXIT_CODE}
|
exit ${GH_RELEASE_EXIT_CODE}
|
||||||
|
|||||||
Reference in new issue
Block a user