Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/generate-libs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install node env 🏗
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 24

- name: Install openapi-generator-cli
run: npm install -g @openapitools/openapi-generator-cli
Expand Down Expand Up @@ -79,10 +79,13 @@ jobs:
# Move generated classes to the correct location
for dir in gem/*/; do
package=$(basename "$dir")

[ "$package" = "lib" ] && continue

mkdir -p "gem/lib/hubsanteModel/models/$package/"
mv "$dir"/lib/hubsanteModel/models/* "gem/lib/hubsanteModel/models/$package/"
rmdir "$dir/lib/hubsanteModel/models" && rmdir "$dir/lib/hubsanteModel" && rmdir "$dir/lib" && rmdir "$dir"
done;
done

OUTPUT_FILE="hubsante_model.rb"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-model.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ jobs:
uses: actions/setup-node@v4
if: steps.filter.outputs.parsing_required == 'true'
with:
node-version: 16
node-version: 24

- name: Install openapi-generator-cli
if: steps.filter.outputs.parsing_required == 'true'
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/package-libs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install node env 🏗
uses: actions/setup-node@v4
with:
node-version: 16

# - name: Python - Prepare package files
# working-directory: ./generator_python/
# run: |
Expand Down Expand Up @@ -113,6 +108,12 @@ jobs:
with:
ruby-version: '3.0'
bundler-cache: true

- name: Ruby - add key gem files
working-directory: ./generator_ruby
run: |
cp hubsante_model.rb gem/lib/hubsanteModel/
cp hubsante_model.gemspec gem/

- name: Ruby - Build Gem
working-directory: ./generator_ruby/gem/
Expand Down
Loading