fix bug maybe?
This commit is contained in:
parent
dc6e3d5888
commit
316755db9d
3 changed files with 8 additions and 2 deletions
|
@ -15,7 +15,7 @@ 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=$?; }
|
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
|
if [ $curlexit -eq 0 ] ; then
|
||||||
echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists";
|
echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists";
|
||||||
|
@ -33,6 +33,8 @@ jobs:
|
||||||
chmod +x ../7zas
|
chmod +x ../7zas
|
||||||
../7zas a -xr!*.xcf -mx9 "${CURR_VER}_build-sc.7z" package.json index.mjs api base public
|
../7zas a -xr!*.xcf -mx9 "${CURR_VER}_build-sc.7z" package.json index.mjs api base public
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
echo "Creating ${CURR_VER} release on gitea"
|
echo "Creating ${CURR_VER} release on gitea"
|
||||||
RELEASE_RESULT=$(curl \
|
RELEASE_RESULT=$(curl \
|
||||||
-X POST \
|
-X POST \
|
||||||
|
|
|
@ -33,6 +33,8 @@ jobs:
|
||||||
chmod +x ../7zas
|
chmod +x ../7zas
|
||||||
../7zas a -xr!*.xcf -mx9 "${CURR_VER}_build-sc.7z" package.json index.mjs api base public
|
../7zas a -xr!*.xcf -mx9 "${CURR_VER}_build-sc.7z" package.json index.mjs api base public
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
echo "Creating ${CURR_VER} release on gitea"
|
echo "Creating ${CURR_VER} release on gitea"
|
||||||
RELEASE_RESULT=$(curl \
|
RELEASE_RESULT=$(curl \
|
||||||
-X POST \
|
-X POST \
|
||||||
|
|
|
@ -15,7 +15,7 @@ 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=$?; }
|
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
|
if [ $curlexit -eq 0 ] ; then
|
||||||
echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists";
|
echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists";
|
||||||
|
@ -33,6 +33,8 @@ jobs:
|
||||||
chmod +x ../7zas
|
chmod +x ../7zas
|
||||||
../7zas a -xr!*.xcf -mx9 "${CURR_VER}_build-sc.7z" package.json index.mjs api base public
|
../7zas a -xr!*.xcf -mx9 "${CURR_VER}_build-sc.7z" package.json index.mjs api base public
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
echo "Creating ${CURR_VER} release on gitea"
|
echo "Creating ${CURR_VER} release on gitea"
|
||||||
RELEASE_RESULT=$(curl \
|
RELEASE_RESULT=$(curl \
|
||||||
-X POST \
|
-X POST \
|
||||||
|
|
Loading…
Reference in a new issue