mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-06 04:20:40 +00:00
adjusted workflows
This commit is contained in:
41
.github/workflows/build-and-copy-plextv-spec.yml
vendored
Normal file
41
.github/workflows/build-and-copy-plextv-spec.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
name: Build and Copy Dereferenced Plex TV API Spec
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- plextv/**
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
dereference_api:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
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: Dereference Plex TV Specification
|
||||||
|
run: |
|
||||||
|
swagger-cli bundle --dereference plextv/plextv-spec.yaml -t yaml -o plex-tv-spec-dereferenced.yaml
|
||||||
|
|
||||||
|
- 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-tv-spec-dereferenced.yaml
|
||||||
|
destination_repo: lukehagar/plex-docs
|
||||||
|
destination_folder: static
|
||||||
|
user_email: lukeslakemail@gmail.com
|
||||||
|
user_name: lukehagar
|
||||||
|
commit_message: Updating PlexTV Spec
|
||||||
|
|
||||||
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
name: Build and Copy Dereferenced Plex API Spec
|
name: Build and Copy Dereferenced Plex Media Server API Spec
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- referenced/**
|
- pms/**
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -26,10 +26,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
swagger-cli bundle --dereference pms/pms-spec.yaml -t yaml -o plex-media-server-spec-dereferenced.yaml
|
swagger-cli bundle --dereference pms/pms-spec.yaml -t yaml -o plex-media-server-spec-dereferenced.yaml
|
||||||
|
|
||||||
- name: Dereference Plex TV Specification
|
|
||||||
run: |
|
|
||||||
swagger-cli bundle --dereference plextv/plextv-spec.yaml -t yaml -o plex-tv-spec-dereferenced.yaml
|
|
||||||
|
|
||||||
- name: Pushes Dereferenced Specification File
|
- name: Pushes Dereferenced Specification File
|
||||||
uses: dmnemec/copy_file_to_another_repo_action@main
|
uses: dmnemec/copy_file_to_another_repo_action@main
|
||||||
env:
|
env:
|
||||||
@@ -42,16 +38,4 @@ jobs:
|
|||||||
user_name: lukehagar
|
user_name: lukehagar
|
||||||
commit_message: Updating PMS Spec
|
commit_message: Updating PMS Spec
|
||||||
|
|
||||||
- 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-tv-spec-dereferenced.yaml
|
|
||||||
destination_repo: lukehagar/plex-docs
|
|
||||||
destination_folder: static
|
|
||||||
user_email: lukeslakemail@gmail.com
|
|
||||||
user_name: lukehagar
|
|
||||||
commit_message: Updating PlexTV Spec
|
|
||||||
|
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
Reference in New Issue
Block a user