From e4d0b8aa50030afcd2159f81bd64fed989a1e799 Mon Sep 17 00:00:00 2001 From: olivierapivideo Date: Tue, 21 Nov 2023 16:18:06 +0000 Subject: [PATCH] The documentation repo becomes independent :) --- .github/workflows/create-documentation-pr.yml | 27 +++++++++++++++++++ .gitignore | 3 +-- .openapi-generator/FILES | 1 - 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/create-documentation-pr.yml diff --git a/.github/workflows/create-documentation-pr.yml b/.github/workflows/create-documentation-pr.yml new file mode 100644 index 0000000..0fd13d4 --- /dev/null +++ b/.github/workflows/create-documentation-pr.yml @@ -0,0 +1,27 @@ +name: Create documentation PR +on: + # Trigger the workflow on pull requests targeting the main branch + pull_request: + types: [assigned, unassigned, opened, reopened, synchronize, edited, labeled, unlabeled, edited, closed] + branches: + - main + +jobs: + create_documentation_pr: + if: github.event.action != 'closed' + + runs-on: ubuntu-latest + + steps: + - name: Check out current repository code + uses: actions/checkout@v2 + + - name: Create the documentation pull request + uses: apivideo/api.video-create-readme-file-pull-request-action@main + with: + source-file-path: "README.md" + destination-repository: apivideo/api.video-documentation + destination-path: sdks/api-clients + destination-filename: apivideo-swift5-client.md + pat: "${{ secrets.PAT }}" + \ No newline at end of file diff --git a/.gitignore b/.gitignore index d1353b4..22029d2 100644 --- a/.gitignore +++ b/.gitignore @@ -102,5 +102,4 @@ iOSInjectionProject/ !*.xcworkspace/contents.xcworkspacedata **/xcshareddata/WorkspaceSettings.xcsettings -# End of https://www.toptal.com/developers/gitignore/api/swift,xcode -documentation.md \ No newline at end of file +# End of https://www.toptal.com/developers/gitignore/api/swift,xcode \ No newline at end of file diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index ba85e5b..39d2d96 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -184,7 +184,6 @@ docs/Webhook.md docs/WebhooksAPI.md docs/WebhooksCreationPayload.md docs/WebhooksListResponse.md -documentation.md git_push.sh post-generate.sh project.yml