mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-07 12:37:44 +00:00
Working on action
This commit is contained in:
20
.github/workflows/update-deref-spec.yml
vendored
20
.github/workflows/update-deref-spec.yml
vendored
@@ -6,14 +6,14 @@ name: CI - Push File
|
|||||||
on:
|
on:
|
||||||
# Triggers the workflow on push or pull request events but only for the "main" branch
|
# Triggers the workflow on push or pull request events but only for the "main" branch
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches:
|
||||||
|
- main
|
||||||
paths:
|
paths:
|
||||||
- "plex-api-spec-dereferenced.yaml"
|
- plex-api-spec-dereferenced.yaml
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
copy-file:
|
copy-file:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -21,14 +21,14 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Pushes test 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:
|
||||||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
||||||
with:
|
with:
|
||||||
source_file: 'plex-api-spec-dereferenced.yaml'
|
source_file: "plex-api-spec-dereferenced.yaml"
|
||||||
destination_repo: 'lukehagar/plex-docs'
|
destination_repo: "lukehagar/plex-docs"
|
||||||
destination_folder: 'static'
|
destination_folder: "static"
|
||||||
user_email: 'lukeslakemail@gmail.com'
|
user_email: "lukeslakemail@gmail.com"
|
||||||
user_name: 'lukehagar'
|
user_name: "lukehagar"
|
||||||
commit_message: 'Updating OpenAPI Spec'
|
commit_message: "Updating OpenAPI Spec"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "redocly bundle ./referenced/plex-api-spec.yaml -o ./plex-api-spec-dereferenced.yaml -d"
|
"build": "swagger-cli bundle --dereference referenced/plex-api-spec.yaml -t yaml -o plex-api-spec-dereferenced.yaml"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user