From 419cb80df4ad9612c487feb92164c5c48e22e84b Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Sun, 5 Nov 2023 04:02:45 +0000 Subject: [PATCH] Different try --- .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 8333534..fea71f5 100644 --- a/.gitea/workflows/nfp_moe.yaml +++ b/.gitea/workflows/nfp_moe.yaml @@ -4,9 +4,6 @@ on: [push] jobs: nfp_moe: - defaults: - run: - shell: ash runs-on: alpine steps: - name: Check out repository code @@ -19,16 +16,12 @@ 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 + 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 "$?" } if [ $? -eq 0 ] ; then echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists"; 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