Different try
Some checks failed
Gitea Actions Demo / nfp_moe (push) Failing after -83h55m30s
continuous-integration/appveyor/branch AppVeyor build succeeded

This commit is contained in:
Jonatan Nilsson 2023-11-05 04:02:45 +00:00
parent db07fc1aaa
commit 419cb80df4

View file

@ -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