Clean script a bit
This commit is contained in:
parent
378c258a31
commit
e0c0d02fbb
1 changed files with 1 additions and 8 deletions
|
@ -17,17 +17,10 @@ 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}"
|
||||||
|
|
||||||
if 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; then
|
if 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; then
|
||||||
echo "true";
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
echo "false"
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
echo "$curlexit"
|
|
||||||
if [ $curlexit -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
|
||||||
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue