mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 05:21:48 +00:00
Update deploy to gh pages condition
This commit is contained in:
5
.github/workflows/gh-pages.yml
vendored
5
.github/workflows/gh-pages.yml
vendored
@@ -5,10 +5,11 @@ on:
|
||||
branches:
|
||||
- main
|
||||
- release/*
|
||||
- "docs/*"
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened, closed]
|
||||
branches:
|
||||
- develop
|
||||
- main
|
||||
- "docs/*"
|
||||
|
||||
concurrency:
|
||||
@@ -102,7 +103,7 @@ jobs:
|
||||
(startsWith(github.ref, 'refs/heads/main')) ||
|
||||
(github.event_name == 'pull_request' &&
|
||||
github.event.pull_request.merged == true &&
|
||||
github.event.pull_request.base.ref == 'develop' &&
|
||||
github.event.pull_request.base.ref == 'main' &&
|
||||
startsWith(github.head_ref, 'docs/'))
|
||||
with:
|
||||
github_token: ${{ secrets.DEPLOY_TOKEN }}
|
||||
|
||||
3
CONTRIBUTING.md
vendored
3
CONTRIBUTING.md
vendored
@@ -1703,9 +1703,12 @@ The accepted branch naming conventions are:
|
||||
- `hotfix/hotfix-name`
|
||||
- `release/2.1.0` or `release/2.1.0rc0`.
|
||||
- `bugfix/bugfix-name`
|
||||
- `docs/docs-name`
|
||||
|
||||
All `feature/feature-name` related branches can only have PRs pointing to `develop` branch. `hotfix/hotfix-name` and `release/*` branches can only have PRs pointing to `main` branch.
|
||||
|
||||
The `docs/docs-name` branch is used to update static documentation (files that are not automatically generated) in-between releases.
|
||||
|
||||
## Installers
|
||||
|
||||
When implementing a new feature or fixing something within the codebase, it is necessary to ensure that it is working
|
||||
|
||||
Reference in New Issue
Block a user