From e4dfc5a56ed800ebe65204b31bf7e921b007b308 Mon Sep 17 00:00:00 2001 From: Okhan Okbay Date: Tue, 19 Sep 2023 14:46:06 +0100 Subject: [PATCH] Create a branch with docs --- .github/workflows/generate-jazzy-docs.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate-jazzy-docs.yml b/.github/workflows/generate-jazzy-docs.yml index 965ccfd86..42e22cd01 100644 --- a/.github/workflows/generate-jazzy-docs.yml +++ b/.github/workflows/generate-jazzy-docs.yml @@ -1,7 +1,13 @@ name: Generate Jazzy Docs on: - workflow_dispatch + pull_request: + types: [opened, synchronize, reopened] + branches: + - 'main' + - 'develop' + - 'release/*' +# workflow_dispatch concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} @@ -10,6 +16,7 @@ concurrency: jobs: generate-jazzy-docs: name: Generate Docs + environment: DocCreation runs-on: macos-latest steps: @@ -47,3 +54,14 @@ jobs: with: name: Jazzy Docs path: ".github/docs" + + - name: Create Branch + env: + BRANCH_NAME: "update/jazzy-docs" + GITHUB_TOKEN: ${{ secrets.DOC_TOKEN }} + run: | + git branch $BRANCH_NAME + git checkout $BRANCH_NAME + git add . + git commit -m "Update jazzy docs" + git push -u origin $BRANCH_NAME