File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 strategy :
2121 fail-fast : false
2222
23+ permissions :
24+ contents : write
25+
2326 steps :
2427 - uses : " actions/checkout@v4"
2528 with :
Original file line number Diff line number Diff line change 66# For more info visit https://github.com/pulp/plugin_template
77
88---
9- name : " Docs"
9+ name : " Docs CI "
1010on :
1111 workflow_call :
1212
1313jobs :
14- test :
14+ changelog :
1515 if : " endsWith(github.base_ref, 'main')"
1616 runs-on : " ubuntu-latest"
1717 defaults :
@@ -22,28 +22,22 @@ jobs:
2222 with :
2323 fetch-depth : 1
2424 path : " pulp_container"
25- - uses : " actions/checkout@v4"
26- with :
27- fetch-depth : 0
28- repository : " pulp/pulp-docs"
29- path : " pulp-docs"
30- ref : " rewrite-as-mkdocs-plugin"
3125 - uses : " actions/setup-python@v5"
3226 with :
3327 python-version : " 3.12"
3428 - name : " Install python dependencies"
3529 run : |
3630 echo ::group::PYDEPS
37- pip install ../pulp-docs towncrier
31+ pip install towncrier
3832 echo ::endgroup::
3933 - name : " Build changelog"
4034 run : |
4135 towncrier build --yes --version 4.0.0.ci
42- - name : " Build docs"
43- working-directory : " pulp-docs "
44- run : |
45- pulp-docs fetch --dest ..
46- pulp-docs build
36+ docs :
37+ if : " endsWith(github.base_ref, 'main') "
38+ uses : ' pulp/pulp-docs/.github/workflows/docs-ci.yml@rewrite-as-mkdocs-plugin '
39+ with :
40+ pulpdocs_ref : ' rewrite-as-mkdocs-plugin '
4741
4842 no-test :
4943 if : " !endsWith(github.base_ref, 'main')"
Original file line number Diff line number Diff line change @@ -146,6 +146,9 @@ jobs:
146146 - " publish-python-bindings"
147147 - " publish-ruby-bindings"
148148
149+ permissions :
150+ contents : write
151+
149152 steps :
150153 - name : " Create release on GitHub"
151154 uses : " actions/github-script@v7"
Original file line number Diff line number Diff line change 55#
66# For more info visit https://github.com/pulp/plugin_template
77towncrier
8- pulp-docs @ git+https://github.com/pulp/pulp-docs@main
8+ pulp-docs @ git+https://github.com/pulp/pulp-docs@rewrite-as-mkdocs-plugin
You can’t perform that action at this time.
0 commit comments