From 2d8ad295d47fcf4540d509ab83e871678d494b5e Mon Sep 17 00:00:00 2001 From: agent-company Date: Sun, 31 May 2026 05:03:51 +0000 Subject: [PATCH] feat: extend publish-openapi pipeline to include VIN Decoder API Add vin-decoder as 4th entry to the APIS array in scripts/publish-openapi.js and add RAPIDAPI_VIN_API_ID / RAPIDAPI_VIN_VERSION_ID secrets to the publish-openapi.yaml CI workflow env block. Closes leeworks-agents/api-company#138 --- .gitea/workflows/publish-openapi.yaml | 5 ++++- scripts/publish-openapi.js | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/publish-openapi.yaml b/.gitea/workflows/publish-openapi.yaml index c8e8fab..540e27d 100644 --- a/.gitea/workflows/publish-openapi.yaml +++ b/.gitea/workflows/publish-openapi.yaml @@ -2,7 +2,8 @@ # Requires secrets (configured once RapidAPI listings are live): # RAPIDAPI_PLATFORM_KEY, RAPIDAPI_ZIP_API_ID, RAPIDAPI_ZIP_VERSION_ID, # RAPIDAPI_HOLIDAYS_API_ID, RAPIDAPI_HOLIDAYS_VERSION_ID, -# RAPIDAPI_AQI_API_ID, RAPIDAPI_AQI_VERSION_ID +# RAPIDAPI_AQI_API_ID, RAPIDAPI_AQI_VERSION_ID, +# RAPIDAPI_VIN_API_ID, RAPIDAPI_VIN_VERSION_ID # # If RAPIDAPI_PLATFORM_KEY is not set the publish step exits 0 with a skip message. @@ -55,4 +56,6 @@ jobs: RAPIDAPI_HOLIDAYS_VERSION_ID: ${{ secrets.RAPIDAPI_HOLIDAYS_VERSION_ID }} RAPIDAPI_AQI_API_ID: ${{ secrets.RAPIDAPI_AQI_API_ID }} RAPIDAPI_AQI_VERSION_ID: ${{ secrets.RAPIDAPI_AQI_VERSION_ID }} + RAPIDAPI_VIN_API_ID: ${{ secrets.RAPIDAPI_VIN_API_ID }} + RAPIDAPI_VIN_VERSION_ID: ${{ secrets.RAPIDAPI_VIN_VERSION_ID }} run: node scripts/publish-openapi.js diff --git a/scripts/publish-openapi.js b/scripts/publish-openapi.js index ce43d18..e7c7c2d 100644 --- a/scripts/publish-openapi.js +++ b/scripts/publish-openapi.js @@ -11,6 +11,8 @@ * RAPIDAPI_HOLIDAYS_VERSION_ID * RAPIDAPI_AQI_API_ID * RAPIDAPI_AQI_VERSION_ID + * RAPIDAPI_VIN_API_ID + * RAPIDAPI_VIN_VERSION_ID * * Usage: node scripts/publish-openapi.js */ @@ -45,6 +47,12 @@ const APIS = [ apiId: process.env.RAPIDAPI_AQI_API_ID, versionId: process.env.RAPIDAPI_AQI_VERSION_ID, }, + { + name: 'vin-decoder', + specPath: path.join(__dirname, '..', 'apis', 'vin-decoder', 'openapi.yaml'), + apiId: process.env.RAPIDAPI_VIN_API_ID, + versionId: process.env.RAPIDAPI_VIN_VERSION_ID, + }, ]; /** -- 2.52.0