if [ -n "${{ secrets.PAUSE_EXTERNAL_TRIGGER_UBOOQUITY_MASTER }}" ]; then
if [ -n "${{ secrets.PAUSE_EXTERNAL_TRIGGER_UBOOQUITY_MASTER }}" ]; then
echo "**** Github secret PAUSE_EXTERNAL_TRIGGER_UBOOQUITY_MASTER is set; skipping trigger. ****"
echo "**** Github secret PAUSE_EXTERNAL_TRIGGER_UBOOQUITY_MASTER is set; skipping trigger. ****"
echo "Github secret \`PAUSE_EXTERNAL_TRIGGER_UBOOQUITY_MASTER\` is set; skipping trigger." >> $GITHUB_STEP_SUMMARY
exit 0
exit 0
fi
fi
echo "**** External trigger running off of master branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_UBOOQUITY_MASTER\". ****"
echo "**** External trigger running off of master branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_UBOOQUITY_MASTER\". ****"
echo "External trigger running off of master branch. To disable this trigger, set a Github secret named \`PAUSE_EXTERNAL_TRIGGER_UBOOQUITY_MASTER\`" >> $GITHUB_STEP_SUMMARY
echo "**** Retrieving external version ****"
echo "**** Retrieving external version ****"
EXT_RELEASE=$(curl -IsL -w %{url_effective} -o /dev/null http://vaemendis.net/ubooquity/service/download.php | sed 's|.*Ubooquity-\([0-9\.]*\).zip|\1|')
EXT_RELEASE=$(curl -IsL -w %{url_effective} -o /dev/null http://vaemendis.net/ubooquity/service/download.php | sed 's|.*Ubooquity-\([0-9\.]*\).zip|\1|')
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
@ -30,6 +32,7 @@ jobs:
fi
fi
EXT_RELEASE=$(echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g')
EXT_RELEASE=$(echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g')
if [ -n "${{ secrets.PAUSE_PACKAGE_TRIGGER_UBOOQUITY_MASTER }}" ]; then
if [ -n "${{ secrets.PAUSE_PACKAGE_TRIGGER_UBOOQUITY_MASTER }}" ]; then
echo "**** Github secret PAUSE_PACKAGE_TRIGGER_UBOOQUITY_MASTER is set; skipping trigger. ****"
echo "**** Github secret PAUSE_PACKAGE_TRIGGER_UBOOQUITY_MASTER is set; skipping trigger. ****"
echo "Github secret \`PAUSE_PACKAGE_TRIGGER_UBOOQUITY_MASTER\` is set; skipping trigger." >> $GITHUB_STEP_SUMMARY
exit 0
exit 0
fi
fi
if [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-ubooquity/job/master/lastBuild/api/json | jq -r '.building') == "true" ]; then
if [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-ubooquity/job/master/lastBuild/api/json | jq -r '.building') == "true" ]; then
echo "**** There already seems to be an active build on Jenkins; skipping package trigger ****"
echo "**** There already seems to be an active build on Jenkins; skipping package trigger ****"
echo "There already seems to be an active build on Jenkins; skipping package trigger" >> $GITHUB_STEP_SUMMARY
exit 0
exit 0
fi
fi
echo "**** Package trigger running off of master branch. To disable, set a Github secret named \"PAUSE_PACKAGE_TRIGGER_UBOOQUITY_MASTER\". ****"
echo "**** Package trigger running off of master branch. To disable, set a Github secret named \"PAUSE_PACKAGE_TRIGGER_UBOOQUITY_MASTER\". ****"
echo "Package trigger running off of master branch. To disable, set a Github secret named \`PAUSE_PACKAGE_TRIGGER_UBOOQUITY_MASTER\`" >> $GITHUB_STEP_SUMMARY