fix action file
Build KX3DEX.radio / Build and Deploy (push) Failing after 1m59s
Details
Build KX3DEX.radio / Build and Deploy (push) Failing after 1m59s
Details
parent
68b0f78cc6
commit
7ec3e0101e
|
@ -23,9 +23,9 @@ jobs:
|
|||
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)"
|
||||
|
||||
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";
|
||||
exit 0
|
||||
|
@ -40,7 +40,7 @@ jobs:
|
|||
-X POST \
|
||||
-H "Authorization: token ${{ secrets.action_token }}" \
|
||||
-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 }}\"}")
|
||||
|
||||
|
||||
|
@ -50,7 +50,7 @@ jobs:
|
|||
curl \
|
||||
-X POST \
|
||||
-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.
|
||||
|
|
Loading…
Reference in New Issue