From e0c0d02fbba5f1406b5b32647bc96c5ec0c7471b Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Sun, 5 Nov 2023 04:10:35 +0000 Subject: [PATCH] Clean script a bit --- .gitea/workflows/nfp_moe.yaml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.gitea/workflows/nfp_moe.yaml b/.gitea/workflows/nfp_moe.yaml index 708105b..d700c60 100644 --- a/.gitea/workflows/nfp_moe.yaml +++ b/.gitea/workflows/nfp_moe.yaml @@ -17,17 +17,10 @@ jobs: echo "Checking https://git.nfp.is/api/v1/repos/${{ gitea.repository }}/releases for name ${CURR_NAME}" 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"; + echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists"; exit 0 fi - echo "false" - exit 0 - echo "$curlexit" - if [ $curlexit -eq 0 ] ; then - echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists"; - exit 0; - fi echo "New release ${CURR_VER} found, running npm install..." mv package.json fuck-you-npm-package.json