From 818e6d78647ee39a9525c1e8cde22d98b7e827e7 Mon Sep 17 00:00:00 2001 From: olivierapivideo Date: Tue, 21 Nov 2023 16:17:58 +0000 Subject: [PATCH] The documentation repo becomes independent :) --- .github/workflows/create-documentation-pr.yml | 27 +++++++++++++++++++ .gitignore | 3 +-- 2 files changed, 28 insertions(+), 2 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..c6d94bd --- /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-php-client.md + pat: "${{ secrets.PAT }}" + \ No newline at end of file diff --git a/.gitignore b/.gitignore index 629ecfb..917de52 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,4 @@ test.php .openapi-generator .openapi-generator-ignore .phpunit.result.cache -post-generate.sh -documentation.md \ No newline at end of file +post-generate.sh \ No newline at end of file