File tree 2 files changed +4
-13
lines changed
2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 53
53
repository-name : ${{ github.event.inputs.repository-name || 'ansible-documentation' }}
54
54
repository-branch : ${{ github.event.inputs.repository-branch || 'devel' }}
55
55
ansible-package-version : ${{ github.event.inputs.ansible-package-version || 'devel' }}
56
- generate-redirects : ${{ github.event.inputs.generate-redirects || 'false' }}
56
+ generate-redirects : >-
57
+ ${{ github.event_name == 'workflow_dispatch'
58
+ && github.event.inputs.generate-redirects == 'true' }}
57
59
secrets :
58
60
DOCS_BOT_TOKEN : ${{ secrets.DOCS_BOT_TOKEN }}
59
61
Original file line number Diff line number Diff line change 38
38
jobs :
39
39
build-package-docs :
40
40
runs-on : ubuntu-latest
41
- env :
42
- REDIRECTS : ${{ github.event.inputs.generate-redirects }}
43
41
steps :
44
42
- name : Checkout Ansible documentation
45
43
uses : actions/checkout@v4
74
72
run : echo VERSION="${PACKAGE_VERSION}" >> "${GITHUB_ENV}"
75
73
76
74
- name : Build the Ansible community package docs
77
- if : env.REDIRECTS == 'true'
78
- run : >-
79
- make webdocs EXTRA_TAGS="-t redirects" ANSIBLE_VERSION="${{
80
- env.PACKAGE_VERSION != 'devel' && env.PACKAGE_VERSION || ''
81
- }}"
82
- working-directory : build-directory/docs/docsite
83
-
84
- - name : Build the Ansible community package docs
85
- if : env.REDIRECTS == 'false'
86
75
run : >-
87
76
make webdocs ${{
88
- fromJSON(env.REDIRECTS) && '-t redirects' || ''
77
+ inputs.generate-redirects && 'EXTRA_TAGS=" -t redirects" ' || ''
89
78
}} ANSIBLE_VERSION="${{
90
79
env.PACKAGE_VERSION != 'devel' && env.PACKAGE_VERSION || ''
91
80
}}"
You can’t perform that action at this time.
0 commit comments