forked from Docker/baseimage-docker
Harden release permission error detection in scheduled build
This commit is contained in:
committed by
Jeshua Ben Joseph
parent
cb4384832b
commit
784dc69f1e
@@ -153,7 +153,7 @@ jobs:
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ ${GH_RELEASE_EXIT_CODE} -ne 0 ]; then
|
if [ ${GH_RELEASE_EXIT_CODE} -ne 0 ]; then
|
||||||
if echo "${GH_RELEASE_OUTPUT}" | grep -q "HTTP 403: Resource not accessible by integration"; then
|
if echo "${GH_RELEASE_OUTPUT}" | grep -Eq "HTTP 403|Resource not accessible by integration"; then
|
||||||
echo "::warning::Skipping GitHub release creation for ${{ steps.release.outputs.next_tag }} because the workflow token cannot create releases."
|
echo "::warning::Skipping GitHub release creation for ${{ steps.release.outputs.next_tag }} because the workflow token cannot create releases."
|
||||||
else
|
else
|
||||||
echo "${GH_RELEASE_OUTPUT}" >&2
|
echo "${GH_RELEASE_OUTPUT}" >&2
|
||||||
|
|||||||
Reference in New Issue
Block a user