-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from LukeHagar/project-setup
- Loading branch information
Showing
94 changed files
with
45 additions
and
10,507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,8 @@ on: | |
branches: | ||
- main | ||
paths: | ||
- "pms-spec.yaml" | ||
- "parameters/**" | ||
- "responses/**" | ||
- "paths/**" | ||
|
||
- src/** | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
|
@@ -18,28 +15,35 @@ jobs: | |
steps: | ||
- name: Checkout PR branch | ||
uses: actions/checkout@v3 | ||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16" | ||
- name: Install swagger-cli | ||
run: | | ||
npm install -g swagger-cli | ||
|
||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v2 | ||
|
||
- name: Install Dependencies | ||
run: bun install | ||
|
||
- name: Dereference Plex Media Server Specification | ||
run: | | ||
swagger-cli bundle --dereference pms-spec.yaml -t yaml -o plex-media-server-spec-dereferenced.yaml | ||
run: bun run build | ||
|
||
- name: Commit Dereferenced Specification File | ||
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 | ||
|
||
- name: Pushes Dereferenced Specification File | ||
uses: dmnemec/copy_file_to_another_repo_action@main | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | ||
with: | ||
source_file: plex-media-server-spec-dereferenced.yaml | ||
source_file: ./output/plex-media-server-spec-dereferenced.yaml | ||
destination_repo: lukehagar/plex-docs | ||
destination_folder: static | ||
user_email: [email protected] | ||
user_name: lukehagar | ||
commit_message: Updating PMS Spec | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
output | ||
.idea | ||
.spectral.mjs | ||
.vscode | ||
.stoplight | ||
.stoplight.json | ||
node_modules | ||
.idea | ||
output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.