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

This commit is contained in:
Jonatan Nilsson 2023-11-05 04:09:07 +00:00
parent 257a72205c
commit 76596e4d37

View file

@ -16,7 +16,12 @@ jobs:
echo "Checking https://git.nfp.is/api/v1/repos/${{ gitea.repository }}/releases for name ${CURR_NAME}" 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 || { export curlexit="hello world"; } if 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; then
echo "true";
else
echo "false"
fi
exit 0
echo "$curlexit" echo "$curlexit"
if [ $curlexit -eq 0 ] ; then if [ $curlexit -eq 0 ] ; then