Skip to content

Commit d503907

Browse files
authored
Only call doc-style (Vale) if called by a PR or a push. (#722)
* Only call doc-style (Vale) if called by a PR or a push. * Only call doc-style (Vale) if called by a PR or a push. * Only call doc-style (Vale) if called by a PR or a push. * Only call doc-style (Vale) if called by a PR or a push. * Only call doc-style (Vale) if called by a PR or a push.
1 parent d78263d commit d503907

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
ANSYS_VERSION: "232"
7878
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
7979
custom-requirements: ''
80+
event_name: ${{ github.event_name }}
8081
secrets: inherit
8182

8283
upload-development-docs:

.github/workflows/ci_release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
with:
6464
ANSYS_VERSION: "232"
6565
standalone_suffix: ""
66+
event_name: ${{ github.event_name }}
6667
secrets: inherit
6768

6869
examples:

.github/workflows/docs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ on:
2222
required: false
2323
type: string
2424
default: ''
25+
event_name:
26+
description: "Check style with Vale (does not work when CI is called manually)"
27+
required: false
28+
type: string
29+
default: 'workflow_dispatch'
2530
# Can be called manually
2631
workflow_dispatch:
2732
inputs:
@@ -53,14 +58,14 @@ env:
5358

5459
jobs:
5560
doc-style:
61+
if: ${{ github.event.inputs.event_name != 'workflow_dispatch' && github.event_name != 'workflow_dispatch' }}
5662
name: "Check doc style"
5763
uses: ./.github/workflows/docs-style.yml
5864
secrets: inherit
5965

6066
docs:
6167
name: "Documentation"
6268
runs-on: windows-latest
63-
needs: [doc-style]
6469
steps:
6570
- uses: actions/checkout@v3
6671

0 commit comments

Comments
 (0)