even more testing
All checks were successful
Gitea Actions Demo / nfp_moe (push) Successful in -83h55m53s
continuous-integration/appveyor/branch AppVeyor build succeeded

This commit is contained in:
Jonatan Nilsson 2023-11-05 03:58:03 +00:00
parent 3b684df694
commit 8a964eeff9

View file

@ -15,12 +15,15 @@ jobs:
CURR_NAME="$(cat package.json | jq -r .name) v$(cat package.json | jq -r .version)" 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}" 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=$?;
if [ $curlexit -eq 0 ] ; then set -o pipefail
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
echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists"; echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists";
exit 0; exit 0;
fi fi
set +o pipefail
echo "New release ${CURR_VER} found, running npm install..." echo "New release ${CURR_VER} found, running npm install..."
mv package.json fuck-you-npm-package.json mv package.json fuck-you-npm-package.json