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: jobs:
nfp_moe: nfp_moe:
defaults:
run:
shell: ash
runs-on: alpine runs-on: alpine
steps: steps:
- name: Check out repository code - 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}" echo "Checking https://git.nfp.is/api/v1/repos/${{ gitea.repository }}/releases for name ${CURR_NAME}"
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 || { echo "$?" }
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
if [ $? -eq 0 ] ; then 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
set +e
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