-
Notifications
You must be signed in to change notification settings - Fork 23
merge build workflow file and add referenced file to the build #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
68852ba
ddbaf9b
eeb506b
bf28b05
575c5b2
49e4c18
83a16b6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,55 @@ | ||||||
| name: Build and Push Plex Media Server API Spec | ||||||
|
|
||||||
| permissions: | ||||||
| checks: write | ||||||
| contents: write | ||||||
| pull-requests: write | ||||||
| statuses: write | ||||||
|
|
||||||
| on: | ||||||
| workflow_dispatch: | ||||||
| inputs: | ||||||
| force: | ||||||
| description: Force generation of SDKs | ||||||
| type: boolean | ||||||
| default: false | ||||||
|
Comment on lines
+11
to
+15
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @LukeHagar Can this be removed as well? |
||||||
| push: | ||||||
|
Comment on lines
+9
to
+16
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Consider adding a pull_request trigger on:
pull_request:
branches:
- main
paths:
- .github/workflows/build-and-push-pms-spec.yml
- src/**🤖 Prompt for AI Agents |
||||||
| branches: | ||||||
| - main | ||||||
| paths: | ||||||
| - .github/workflows/build-and-push-pms-spec.yaml | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Errant file extension in push trigger paths - - .github/workflows/build-and-push-pms-spec.yaml
+ - .github/workflows/build-and-push-pms-spec.yml📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| - src/** | ||||||
JasonLandbridge marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
|
||||||
| jobs: | ||||||
| build: | ||||||
| name: Build Open API Spec | ||||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - uses: actions/checkout@v4 | ||||||
|
|
||||||
| - name: Project Setup | ||||||
| uses: ./.github/workflows/steps/project-setup | ||||||
|
|
||||||
| - name: Build Plex Media Server Specification | ||||||
| run: bun run build | ||||||
|
|
||||||
| - name: Commit Build Specification Files | ||||||
| uses: stefanzweifel/git-auto-commit-action@v4 | ||||||
| with: | ||||||
| commit_message: "build: dereferenced Plex Media Server API Spec updated" | ||||||
| skip_checkout: true | ||||||
| skip_fetch: true | ||||||
| add_options: "-f" | ||||||
| file_pattern: "./output/*.yaml" | ||||||
| skip_dirty_check: true | ||||||
| generate: | ||||||
| needs: build | ||||||
| name: Push to Speakeasy API | ||||||
| uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 | ||||||
| with: | ||||||
| force: ${{ github.event.inputs.force }} | ||||||
|
Comment on lines
+49
to
+50
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @LukeHagar Can this be removed if this pipeline will never generate an SDK directly? |
||||||
| mode: direct | ||||||
| speakeasy_version: latest | ||||||
| secrets: | ||||||
|
Comment on lines
+49
to
+53
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Pin Speakeasy version for stability # Instead of:
speakeasy_version: latest
# consider:
speakeasy_version: vX.Y.Z # pin to tested release🤖 Prompt for AI Agents |
||||||
| github_access_token: ${{ secrets.GITHUB_TOKEN }} | ||||||
| speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} | ||||||
JasonLandbridge marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -17,9 +17,10 @@ | |||||||||||||||||
| "dev": "redocly preview -d=./src", | ||||||||||||||||||
| "preview-docs": "redocly preview-docs src/pms-spec.yaml --config=./redocly.yaml", | ||||||||||||||||||
| "stats": "redocly stats ./src/pms-spec.yaml", | ||||||||||||||||||
| "build": "swagger-cli bundle --dereference ./src/pms-spec.yaml -t yaml -o ./output/plex-media-server-spec-dereferenced.yaml", | ||||||||||||||||||
| "build": "bun run build-referenced & bun run build-dereferenced & wait", | ||||||||||||||||||
| "build-referenced": "redocly bundle ./src/pms-spec.yaml --config ./redocly.yaml --ext yaml -o ./output/plex-media-server-spec-referenced.yaml", | ||||||||||||||||||
| "build-dereferenced": "swagger-cli bundle --dereference ./src/pms-spec.yaml -t yaml -o ./output/plex-media-server-spec-dereferenced.yaml", | ||||||||||||||||||
| "build-watch": "bun run build && chokidar './src/**/*' -c 'bun run build'", | ||||||||||||||||||
|
Comment on lines
+20
to
23
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Cross-platform compatibility of build scripts - "build": "bun run build-referenced & bun run build-dereferenced & wait",
+ "build": "npx concurrently \"bun run build-referenced\" \"bun run build-dereferenced\""📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
| "build-redocly": "redocly bundle ./src/pms-spec.yaml --ext yaml -o ./output/plex-media-server-spec-dereferenced.yaml", | ||||||||||||||||||
| "test": "bun run build && vitest --run", | ||||||||||||||||||
| "type-check": "tsc", | ||||||||||||||||||
| "setup-speakeasy-cli": "curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/install.sh | sh", | ||||||||||||||||||
|
|
@@ -29,9 +30,9 @@ | |||||||||||||||||
| "lint-bundled": "speakeasy lint openapi -s ./output/plex-media-server-spec-dereferenced.yaml" | ||||||||||||||||||
| }, | ||||||||||||||||||
| "devDependencies": { | ||||||||||||||||||
| "@modyfi/vite-plugin-yaml": "^1.1.0", | ||||||||||||||||||
| "@modyfi/vite-plugin-yaml": "^1.1.1", | ||||||||||||||||||
| "@ngneat/falso": "^7.3.0", | ||||||||||||||||||
| "@redocly/cli": "^1.28.1", | ||||||||||||||||||
| "@redocly/cli": "^1.34.3", | ||||||||||||||||||
| "@types/lodash-es": "^4.17.12", | ||||||||||||||||||
| "@types/node": "^22.5.0", | ||||||||||||||||||
| "chokidar-cli": "^3.0.0", | ||||||||||||||||||
|
|
||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LukeHagar And by extension this as well?