From 316755db9dbf57e5cf182ecbef1d552513b61430 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Sun, 5 Nov 2023 03:49:50 +0000 Subject: [PATCH] fix bug maybe? --- .gitea/workflows/discord_embed.yaml | 4 +++- .gitea/workflows/nfp_moe.yaml | 2 ++ .gitea/workflows/saproxy.yaml | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/discord_embed.yaml b/.gitea/workflows/discord_embed.yaml index 53206b7..70bd027 100644 --- a/.gitea/workflows/discord_embed.yaml +++ b/.gitea/workflows/discord_embed.yaml @@ -15,7 +15,7 @@ jobs: CURR_NAME="$(cat package.json | jq -r .name) v$(cat package.json | jq -r .version)" 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 || { curlexit=$?; } + 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 [ $curlexit -eq 0 ] ; then echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists"; @@ -33,6 +33,8 @@ jobs: chmod +x ../7zas ../7zas a -xr!*.xcf -mx9 "${CURR_VER}_build-sc.7z" package.json index.mjs api base public + exit 0 + echo "Creating ${CURR_VER} release on gitea" RELEASE_RESULT=$(curl \ -X POST \ diff --git a/.gitea/workflows/nfp_moe.yaml b/.gitea/workflows/nfp_moe.yaml index 53206b7..d13fb92 100644 --- a/.gitea/workflows/nfp_moe.yaml +++ b/.gitea/workflows/nfp_moe.yaml @@ -33,6 +33,8 @@ jobs: chmod +x ../7zas ../7zas a -xr!*.xcf -mx9 "${CURR_VER}_build-sc.7z" package.json index.mjs api base public + exit 0 + echo "Creating ${CURR_VER} release on gitea" RELEASE_RESULT=$(curl \ -X POST \ diff --git a/.gitea/workflows/saproxy.yaml b/.gitea/workflows/saproxy.yaml index 53206b7..70bd027 100644 --- a/.gitea/workflows/saproxy.yaml +++ b/.gitea/workflows/saproxy.yaml @@ -15,7 +15,7 @@ jobs: CURR_NAME="$(cat package.json | jq -r .name) v$(cat package.json | jq -r .version)" 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 || { curlexit=$?; } + 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 [ $curlexit -eq 0 ] ; then echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists"; @@ -33,6 +33,8 @@ jobs: chmod +x ../7zas ../7zas a -xr!*.xcf -mx9 "${CURR_VER}_build-sc.7z" package.json index.mjs api base public + exit 0 + echo "Creating ${CURR_VER} release on gitea" RELEASE_RESULT=$(curl \ -X POST \