Skip to content

Merge pull request #48 from LukeHagar/redocly-lint #106

Merge pull request #48 from LukeHagar/redocly-lint

Merge pull request #48 from LukeHagar/redocly-lint #106

name: Build and Copy Dereferenced Plex Media Server API Spec
on:
push:
branches:
- main
paths:
- src/**
workflow_dispatch:
jobs:
dereference_api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Project Setup
uses: ./.github/workflows/steps/project-setup
- name: Dereference Plex Media Server Specification
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: ./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