Skip to content

Commit 740fd16

Browse files
committed
Add log file artifact
Signed-off-by: Webster Mudge <wmudge@cloudera.com>
1 parent efdbb3f commit 740fd16

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.github/workflows/construct_docs.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ on:
1616
If 'true', the collection documentation will be uploaded as a Github Pages artifact.
1717
required: false
1818
type: string
19+
default: false
20+
antsibull-log-upload:
21+
description: |
22+
If 'true', the antsibull-doc log will be uploaded as an artifact.
23+
required: false
24+
type: string
25+
default: false
1926

2027
jobs:
2128
build-ansible-docs:
@@ -43,6 +50,14 @@ jobs:
4350
- name: Build documentation
4451
run: ./docsbuild/build.sh
4552

53+
- name: Upload antsibull-doc log artifact
54+
if: fromJSON(inputs.antsibull-log-upload)
55+
uses: actions/upload-artifact@v3
56+
with:
57+
path: ./docsbuild/antsibull.log
58+
name: antsibull-${{ github.sha }}.log
59+
retention-days: 7
60+
4661
- name: Upload directory artifact
4762
if: fromJSON(inputs.directory-upload)
4863
uses: actions/upload-artifact@v3

.github/workflows/publish_docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
with:
1717
pages-upload: true
1818
directory-upload: true
19+
antsibull-log-upload: true
1920

2021
publish-ansible-docs:
2122
name: Publish Ansible Docs

docsbuild/antsibull-docs.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ logging_cfg = {
3838
# Log everything a user might be interested in to a log file.
3939
all = {
4040
# DEBUG is the most verbose level
41-
level = NOTICE
41+
level = DEBUG
4242
output_name = logfile
4343
}
4444
# Log problems to stderr so they can be reported and taken care of.

0 commit comments

Comments
 (0)