From 84d00770def82eb4184a37eada2b2d8cb2f64dee Mon Sep 17 00:00:00 2001 From: luke-hagar-sp <98849695+luke-hagar-sp@users.noreply.github.com> Date: Fri, 31 Mar 2023 18:50:18 -0500 Subject: [PATCH] Working on action --- .github/workflows/update-deref-spec.yml | 32 ++++++++++++------------- package.json | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/update-deref-spec.yml b/.github/workflows/update-deref-spec.yml index a9a5d8ac..032c00a7 100644 --- a/.github/workflows/update-deref-spec.yml +++ b/.github/workflows/update-deref-spec.yml @@ -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" diff --git a/package.json b/package.json index f74bf2df..e6c4c618 100644 --- a/package.json +++ b/package.json @@ -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" } }