Skip to content
Merged
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
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ on:
push:
branches:
- main
# Serialize runs: concurrent runs finish in arbitrary order, and an older
# commit's run finishing last would overwrite a newer sync (e.g. revert a
# release). Only the newest pending run is kept, which is fine since it
# generates from the latest main.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
build-go:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -64,7 +71,7 @@ jobs:
# Verify the generated CLI compiles against the freshly generated go
# client, so this does not depend on a released phrase-go version
# that may lag behind the spec.
(cd ./clients/cli && go mod edit -replace github.com/phrase/phrase-go/v4=../go && go build . && go mod edit -dropreplace github.com/phrase/phrase-go/v4)
(cd ./clients/cli && go mod edit -replace github.com/phrase/phrase-go/v4=../go && go build -o /dev/null . && go mod edit -dropreplace github.com/phrase/phrase-go/v4)
git clone https://$API_TOKEN_GITHUB@github.com/phrase/phrase-cli.git clones/cli &> /dev/null
rsync -avI --delete --exclude='.git/' clients/cli/ clones/cli
cd clones/cli
Expand Down
1 change: 1 addition & 0 deletions clients/cli/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.phraseapp.yaml
/phrase-cli
1 change: 1 addition & 0 deletions openapi-generator/java_lang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ scmDeveloperConnection: scm:git:git@github.com:phrase/openapi.git
scmUrl: https://github.com/phrase/strings-openapi
java8: true
dateLibrary: java8
hideGenerationTimestamp: true
templateDir: openapi-generator/templates/java
2 changes: 1 addition & 1 deletion openapi-generator/templates/ruby-client/model_doc.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
```ruby
require '{{moduleName}}'

instance = {{moduleName}}::{{classname}}.new({{#vars}}{{name}}: {{example}}{{^-last}},
instance = {{moduleName}}::{{classname}}.new({{#vars}}{{name}}: {{#isBinary}}File.new('/path/to/file'){{/isBinary}}{{^isBinary}}{{example}}{{/isBinary}}{{^-last}},
{{/-last}}{{/vars}})
```

Expand Down
Loading