Skip to content

Commit

Permalink
fix: Remove additional v from swagger filename
Browse files Browse the repository at this point in the history
  • Loading branch information
smutel committed Aug 24, 2021
1 parent 5c4e474 commit 01b6671
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
rm -rf netbox && mkdir netbox && touch netbox/.gitkeep
./swagger generate client -f swagger.json -A go-netbox -t "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/go-netbox/netbox" --copyright-file="$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/go-netbox/LICENSE"
find patchs -type f -name "*.patch" | xargs patch -p0
cp swagger.json "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/go-netbox/netbox/swagger-v${VERSION}.json"
cp swagger.json "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/go-netbox/netbox/swagger-${VERSION}.json"
shell: bash

- name: Commit library
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ jobs:
rm -rf netbox && mkdir netbox && touch netbox/.gitkeep
./swagger generate client -f swagger.json -A go-netbox -t "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/go-netbox/netbox" --copyright-file="$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/go-netbox/LICENSE"
find patchs -type f -name "*.patch" | xargs patch -p0
cp swagger.json "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/go-netbox/netbox/swagger-v${VERSION}.json"
cp swagger.json "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/go-netbox/netbox/swagger-${VERSION}.json"
shell: bash
1 change: 0 additions & 1 deletion netbox/swagger-vv2.11.12.json

This file was deleted.

0 comments on commit 01b6671

Please sign in to comment.