Skip to content

Commit

Permalink
Regenerate code in tidalApi using the downloaded artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
michpohl committed Oct 25, 2024
1 parent 2bd894f commit 0cd0378
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/regenerate_tidalapi_module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,15 @@ jobs:
# Download the asset using the GitHub API
curl -L -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/octet-stream" \
-o generator.jar \
-o tidalapi/bin/openapi-generator.jar \
"$ASSET_ID"
- name: List Files
run: ls -l

- name: Regenerate the TidalAPI module
run: |
cd tidalapi
python ./bin/generate-api-files.py ./bin/generate-api-config.json
env:
JAVA_HOME: /usr/lib/jvm/java-17-openjdk-amd64
5 changes: 1 addition & 4 deletions tidalapi/bin/generate-api-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
{
"inputURL": "https://developer.tidal.com/apiref/api-specifications/api-public-user-content/tidal-user-content-openapi-3.0.json"
}

],
"output": "./tidal-api-joined.json",
"openapi_generator_path": "tbd"


"openapi_generator_path": "openapi-generator-cli.jar"
}

0 comments on commit 0cd0378

Please sign in to comment.