Merge pull request #15 from linuxserver/external_artifact_check

Add external_artifact_check
This commit is contained in:
aptalca 2024-11-19 08:39:22 -05:00 committed by GitHub
commit a964cadfc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View File

@ -80,6 +80,13 @@ jobs:
echo "New version \`${EXT_RELEASE}\` found; but there already seems to be an active build on Jenkins; exiting" >> $GITHUB_STEP_SUMMARY
exit 0
else
BLENDER_FOLDER=$(echo "Blender${EXT_RELEASE}" | sed -r 's|(Blender[0-9]*\.[0-9]*)\.[0-9]*|\1|')
ASSETS=$(curl -o /dev/null -sI -w "%{http_code}\n" "https://mirror.clarkson.edu/blender/release/${BLENDER_FOLDER}/blender-${EXT_RELEASE}-linux-x64.tar.xz")
if [ ${ASSETS} == "200" ]; then
artifacts_found="true"
else
artifacts_found="false"
fi
if [[ "${artifacts_found}" == "false" ]]; then
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
echo "> New version detected, but not all artifacts are published yet; skipping trigger" >> $GITHUB_STEP_SUMMARY

View File

@ -7,7 +7,14 @@ custom_version_command: "curl -s https://projects.blender.org/api/v1/repos/blend
release_type: stable
release_tag: latest
ls_branch: master
build_armhf: false
external_artifact_check: |
BLENDER_FOLDER=$(echo "Blender${EXT_RELEASE}" | sed -r 's|(Blender[0-9]*\.[0-9]*)\.[0-9]*|\1|')
ASSETS=$(curl -o /dev/null -sI -w "%{http_code}\n" "https://mirror.clarkson.edu/blender/release/${BLENDER_FOLDER}/blender-${EXT_RELEASE}-linux-x64.tar.xz")
if [ ${ASSETS} == "200" ]; then
artifacts_found="true"
else
artifacts_found="false"
fi
repo_vars:
- BUILD_VERSION_ARG = 'BLENDER_VERSION'
- LS_USER = 'linuxserver'