1313 standalone_branch_suffix :
1414 description : ' Suffix of the branch on standalone'
1515 required : false
16- default : ' '
16+ default : ' '
17+ ansys_version :
18+ description : " ANSYS version"
19+ required : false
20+ type : string
1721
1822
1923concurrency :
2529 MODULE : ' post'
2630 DOCUMENTATION_CNAME : ' post.docs.pyansys.com'
2731 MAIN_PYTHON_VERSION : ' 3.10'
28- ANSYS_VERSION : ' 252'
2932
3033jobs :
3134 debug :
8790 - uses : actions/checkout@v4
8891
8992 - name : " Set licensing if necessary"
90- if : env.ANSYS_VERSION > 231
93+ if : ${{ (github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT) > ' 231' }}
9194 shell : bash
9295 run : |
9396 echo "ANSYS_DPF_ACCEPT_LA=Y" >> $GITHUB_ENV
97100 uses :
ansys/pydpf-actions/[email protected] 98101 with :
99102 python-version : ${{ matrix.python-version }}
100- ANSYS_VERSION : ${{env.ANSYS_VERSION }}
103+ ANSYS_VERSION : ${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}
101104 PACKAGE_NAME : ${{env.PACKAGE_NAME}}
102105 MODULE : ${{env.MODULE}}
103106 dpf-standalone-TOKEN : ${{secrets.DPF_PIPELINE}}
@@ -152,7 +155,7 @@ jobs:
152155 matrix :
153156 python-version : ["3.10"]
154157 os : ["windows-latest", "ubuntu-latest"]
155- ANSYS_VERSION : ["251", "242", "241", "232", "231", "222"]
158+ ANSYS_VERSION : ["252", " 251", "242", "241", "232", "231", "222"]
156159
157160 steps :
158161 - uses : actions/checkout@v4
@@ -209,7 +212,7 @@ jobs:
209212 if : startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
210213 uses : ./.github/workflows/examples.yml
211214 with :
212- ANSYS_VERSION : " 252 "
215+ ANSYS_VERSION : ${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}
213216 python_versions : ' ["3.10"]'
214217 standalone_suffix : ${{ inputs.standalone_suffix || ''}}
215218 secrets : inherit
@@ -218,7 +221,7 @@ jobs:
218221 if : startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
219222 uses : ./.github/workflows/docs.yml
220223 with :
221- ANSYS_VERSION : " 252 "
224+ ANSYS_VERSION : ${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}
222225 python_version : " 3.10"
223226 standalone_suffix : ${{ inputs.standalone_suffix || ''}}
224227 event_name : ${{ github.event_name }}
0 commit comments