Skip to content

Commit

Permalink
Create a branch with docs
Browse files Browse the repository at this point in the history
  • Loading branch information
okhan-okbay-cko committed Sep 19, 2023
1 parent 4f550f3 commit e4dfc5a
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/generate-jazzy-docs.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand All @@ -10,6 +16,7 @@ concurrency:
jobs:
generate-jazzy-docs:
name: Generate Docs
environment: DocCreation
runs-on: macos-latest

steps:
Expand Down Expand Up @@ -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

0 comments on commit e4dfc5a

Please sign in to comment.