Working on action

This commit is contained in:
luke-hagar-sp
2023-03-31 18:50:18 -05:00
parent 9e99a38366
commit 84d00770de
2 changed files with 17 additions and 17 deletions

View File

@@ -6,29 +6,29 @@ 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
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
- name: Pushes test 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'
- 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"

View File

@@ -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"
}
}