Update library-ondeck.yaml #22
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
name: Build and Copy Dereferenced Plex Media Server API Spec | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- pms/** | |
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 Media Server Specification | |
run: | | |
swagger-cli bundle --dereference pms/pms-spec.yaml -t yaml -o plex-media-server-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-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 |