Skip to content

Commit 4774b67

Browse files
committed
Don't test docs on release branches
1 parent 36aa867 commit 4774b67

17 files changed

Lines changed: 20 additions & 101 deletions

File tree

.github/workflows/docs.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
jobs:
77
test:
8+
if: "endsWith(github.base_ref, 'main')"
89
runs-on: "ubuntu-20.04"
910
steps:
1011
- uses: "actions/checkout@v4"
@@ -22,5 +23,12 @@ jobs:
2223
- name: "Install Test Dependencies"
2324
run: |
2425
pip install -r doc_requirements.txt
25-
- name: Build docs
26-
run: make docs
26+
- name: "Build docs"
27+
run: |
28+
make docs
29+
no-test:
30+
if: "!endsWith(github.base_ref, 'main')"
31+
runs-on: "ubuntu-20.04"
32+
steps:
33+
- run: |
34+
echo "Skip docs testing on non-main branches."

.github/workflows/kanban.yml

Lines changed: 0 additions & 97 deletions
This file was deleted.

cookiecutter/docs/{{ cookiecutter.__project_slug }}/.github/workflows/docs.yml renamed to cookiecutter/docs/{{ cookiecutter.__project_name }}/.github/workflows/docs.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
jobs:
77
test:
8+
if: "endsWith(github.base_ref, 'main')"
89
runs-on: "ubuntu-20.04"
910
steps:
1011
- uses: "actions/checkout@v4"
@@ -22,5 +23,12 @@ jobs:
2223
- name: "Install Test Dependencies"
2324
run: |
2425
pip install -r doc_requirements.txt
25-
- name: Build docs
26-
run: make docs
26+
- name: "Build docs"
27+
run: |
28+
make docs
29+
no-test:
30+
if: "!endsWith(github.base_ref, 'main')"
31+
runs-on: "ubuntu-20.04"
32+
steps:
33+
- run: |
34+
echo "Skip docs testing on non-main branches."

cookiecutter/docs/{{ cookiecutter.__project_slug }}/doc_requirements.txt renamed to cookiecutter/docs/{{ cookiecutter.__project_name }}/doc_requirements.txt

File renamed without changes.

cookiecutter/docs/{{ cookiecutter.__project_slug }}/docs/en/index.html renamed to cookiecutter/docs/{{ cookiecutter.__project_name }}/docs/en/index.html

File renamed without changes.

cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/admin/guides/.gitkeep renamed to cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/admin/guides/.gitkeep

File renamed without changes.

cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/admin/learn/.gitkeep renamed to cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/admin/learn/.gitkeep

File renamed without changes.

cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/admin/reference/.gitkeep renamed to cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/admin/reference/.gitkeep

File renamed without changes.

cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/admin/tutorials/.gitkeep renamed to cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/admin/tutorials/.gitkeep

File renamed without changes.

cookiecutter/docs/{{ cookiecutter.__project_slug }}/staging_docs/dev/guides/.gitkeep renamed to cookiecutter/docs/{{ cookiecutter.__project_name }}/staging_docs/dev/guides/.gitkeep

File renamed without changes.

0 commit comments

Comments
 (0)