1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 04:34:43 +04:00

github: final fixes for SDK publishing (#3069)

* Fixes 4 fixes 4 fixes
* gh: proper step naming
* github: Restored SDK processing logic
This commit is contained in:
hedger
2023-09-12 04:20:45 +03:00
committed by GitHub
parent 91813831c6
commit 8bfa9898e3
2 changed files with 6 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ inputs:
catalog-url:
description: The URL of the Catalog API
required: true
catalog-token:
catalog-api-token:
description: The token to use to authenticate with the Catalog API
required: true
firmware-api:
@@ -41,7 +41,7 @@ runs:
curl -X 'POST' \
"${{ inputs.catalog-url }}/api/v0/0/sdk/${SDK_ID}/release" \
-H 'Accept: application/json' \
-H 'Authorization: Bearer ${{ inputs.catalog-token }}' \
-H 'Authorization: Bearer ${{ inputs.catalog-api-token }}' \
-d ''
fi
else
@@ -49,7 +49,7 @@ runs:
curl -X 'POST' \
'${{ inputs.catalog-url }}/api/v0/0/sdk' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer ${{ inputs.catalog-token }}' \
-H 'Authorization: Bearer ${{ inputs.catalog-api-token }}' \
-H 'Content-Type: application/json' \
-d "{\"name\": \"${{ inputs.firmware-version }}\", \"target\": \"${{ inputs.firmware-target }}\", \"api\": \"${{ inputs.firmware-api }}\"}\"
-d "{\"name\": \"${{ inputs.firmware-version }}\", \"target\": \"${{ inputs.firmware-target }}\", \"api\": \"${{ inputs.firmware-api }}\"}"
fi