mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-06 12:37:45 +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:
|
||||
# Triggers the workflow on push or pull request events but only for the "main" branch
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "plex-api-spec-dereferenced.yaml"
|
||||
- plex-api-spec-dereferenced.yaml
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
copy-file:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -21,14 +21,14 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Pushes test file
|
||||
- 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-api-spec-dereferenced.yaml'
|
||||
destination_repo: 'lukehagar/plex-docs'
|
||||
destination_folder: 'static'
|
||||
user_email: 'lukeslakemail@gmail.com'
|
||||
user_name: 'lukehagar'
|
||||
commit_message: 'Updating OpenAPI Spec'
|
||||
source_file: "plex-api-spec-dereferenced.yaml"
|
||||
destination_repo: "lukehagar/plex-docs"
|
||||
destination_folder: "static"
|
||||
user_email: "lukeslakemail@gmail.com"
|
||||
user_name: "lukehagar"
|
||||
commit_message: "Updating OpenAPI Spec"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"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