diff --git a/.gitea/workflows/nfp_moe.yaml b/.gitea/workflows/nfp_moe.yaml index 2dffcc6..d89bfbd 100644 --- a/.gitea/workflows/nfp_moe.yaml +++ b/.gitea/workflows/nfp_moe.yaml @@ -17,6 +17,7 @@ jobs: echo "Checking https://git.nfp.is/api/v1/repos/${{ gitea.repository }}/releases for name ${CURR_NAME}" set -o pipefail + set -e 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 if [ $? -eq 0 ] ; then @@ -24,6 +25,7 @@ jobs: exit 0; fi set +o pipefail + set +e echo "New release ${CURR_VER} found, running npm install..." mv package.json fuck-you-npm-package.json