We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b621661 commit 92495e5Copy full SHA for 92495e5
.github/actions/update-with-latest-versions/entrypoint.sh
@@ -51,6 +51,11 @@ update_version() {
51
LATEST_VERSION_TAG=`curl -L -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/${INPUT_REPOSITORY}/releases/latest" | jq --raw-output ".tag_name"`
52
LATEST_VERSION_NUMBER=${LATEST_VERSION_TAG:1}
53
54
+ if [ "$LATEST_VERSION_TAG" = "null" ]; then
55
+ echo "https://api.github.com returned null, please re-run this job, if the problem persists this script needs to be rewritten"
56
+ exit 1
57
+ fi
58
+
59
echo "Updating documentation files that rely on ${INPUT_VERSION_IDENTIFIER} to ${LATEST_VERSION_TAG}"
60
61
while read -r file; do
0 commit comments