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: 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
steps: steps:
- 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"

View File

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