Progress
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
Gitea Actions Demo / nfp_moe (push) Successful in -83h55m16s

This commit is contained in:
Jonatan Nilsson 2023-11-05 04:04:06 +00:00
parent 898e0f184e
commit 6f5ffc50d3

View file

@ -16,9 +16,10 @@ jobs:
echo "Checking https://git.nfp.is/api/v1/repos/${{ gitea.repository }}/releases for name ${CURR_NAME}"
curl -s -X GET -H "Authorization: token ${{ secrets.deploytoken }}" https://git.nfp.is/api/v1/repos/${{ gitea.repository }}/releases | grep -o "\"name\"\:\"${CURR_NAME}\"" > /dev/null || { echo "$?"; }
curl -s -X GET -H "Authorization: token ${{ secrets.deploytoken }}" https://git.nfp.is/api/v1/repos/${{ gitea.repository }}/releases | grep -o "\"name\"\:\"${CURR_NAME}\"" > /dev/null || { curlexit="$?"; }
if [ $? -eq 0 ] ; then
echo "$curlexit"
if [ $curlexit -eq 0 ] ; then
echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists";
exit 0;
fi