fix action file
Build KX3DEX.radio / Build and Deploy (push) Failing after 1m59s Details

master kx3dex_radio_v1.0.0
Dex 2024-03-28 15:41:19 -04:00
parent 68b0f78cc6
commit 7ec3e0101e
2 changed files with 7 additions and 7 deletions

View File

@ -23,9 +23,9 @@ jobs:
CURR_VER="$(cat package.json | jq -r .name)_v$(cat package.json | jq -r .version)" CURR_VER="$(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)" CURR_NAME="$(cat package.json | jq -r .name) v$(cat package.json | jq -r .version)"
echo "Checking http://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases for name ${CURR_NAME}" echo "Checking https://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases for name ${CURR_NAME}"
if curl -s -X GET -H "Authorization: token ${{ secrets.action_token }}" http://gitea.dex/api/v1/repos/${{ gitea.repository }}/releases | grep -o "\"name\"\:\"${CURR_NAME}\"" > /dev/null; then if curl -s -X GET -H "Authorization: token ${{ secrets.action_token }}" https://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases | grep -o "\"name\"\:\"${CURR_NAME}\"" > /dev/null; then
echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists"; echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists";
exit 0 exit 0
@ -40,7 +40,7 @@ jobs:
-X POST \ -X POST \
-H "Authorization: token ${{ secrets.action_token }}" \ -H "Authorization: token ${{ secrets.action_token }}" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
http://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases \ https://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases \
-d "{\"tag_name\":\"${CURR_VER}\",\"name\":\"${CURR_NAME}\",\"body\":\"Automatic release from gitea :\n\n${{ gitea.event.head_commit.message }}\"}") -d "{\"tag_name\":\"${CURR_VER}\",\"name\":\"${CURR_NAME}\",\"body\":\"Automatic release from gitea :\n\n${{ gitea.event.head_commit.message }}\"}")
@ -50,7 +50,7 @@ jobs:
curl \ curl \
-X POST \ -X POST \
-H "Authorization: token ${{ secrets.action_token }}" \ -H "Authorization: token ${{ secrets.action_token }}" \
http://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases/$RELEASE_ID/assets https://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases/$RELEASE_ID/assets
- name: Build Docker container and put in gitea registry. - name: Build Docker container and put in gitea registry.