Different try
This commit is contained in:
parent
db07fc1aaa
commit
419cb80df4
1 changed files with 1 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue