Skip to content

Commit 7751fe3

Browse files
authored
Update update_operators.yml
1 parent ce0a6c6 commit 7751fe3

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/update_operators.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ on:
1313
description: "ANSYS version"
1414
required: false
1515
type: string
16-
default: vars.ANSYS_VERSION_DEFAULT
1716
standalone_branch_suffix:
1817
description: "Suffix of the branch on standalone"
1918
required: false
@@ -53,7 +52,7 @@ jobs:
5352
- name: "Update ansys-grpc-dpf"
5453
shell: bash
5554
run: |
56-
wheel_file=$(find ./dpf-standalone/v${{ github.event.inputs.ANSYS_VERSION }}/dist -name "ansys_grpc_dpf-*" -type f)
55+
wheel_file=$(find ./dpf-standalone/${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}/dist -name "ansys_grpc_dpf-*" -type f)
5756
echo $wheel_file
5857
rm -r src/ansys/grpc
5958
unzip -o $wheel_file "ansys/**/*" -d src/
@@ -63,7 +62,7 @@ jobs:
6362
- name: "Update ansys-dpf-gate"
6463
shell: bash
6564
run: |
66-
wheel_file=$(find ./dpf-standalone/v${{ github.event.inputs.ANSYS_VERSION }}/dist -name "ansys_dpf_gate-*" -type f)
65+
wheel_file=$(find ./dpf-standalone/v${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}/dist -name "ansys_dpf_gate-*" -type f)
6766
echo $wheel_file
6867
rm -r src/ansys/dpf/gate/generated
6968
unzip -o $wheel_file "ansys/dpf/gate/generated/*" -d src/
@@ -74,7 +73,7 @@ jobs:
7473
- name: "Update ansys-dpf-gatebin lin"
7574
shell: bash
7675
run: |
77-
wheel_file=$(find ./dpf-standalone/v${{ github.event.inputs.ANSYS_VERSION }}/dist -name "ansys_dpf_gatebin-*linux1*" -type f)
76+
wheel_file=$(find ./dpf-standalone/v${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}/dist -name "ansys_dpf_gatebin-*linux1*" -type f)
7877
echo $wheel_file
7978
rm -r src/ansys/dpf/gatebin
8079
unzip -o $wheel_file "ansys/**/*" -d src/
@@ -83,7 +82,7 @@ jobs:
8382
- name: "Update ansys-dpf-gatebin win"
8483
shell: bash
8584
run: |
86-
wheel_file=$(find ./dpf-standalone/v${{ github.event.inputs.ANSYS_VERSION }}/dist -name "ansys_dpf_gatebin-*win*" -type f)
85+
wheel_file=$(find ./dpf-standalone/v${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}/dist -name "ansys_dpf_gatebin-*win*" -type f)
8786
echo $wheel_file
8887
unzip -o $wheel_file "ansys/**/*" -d src/
8988
chmod -R 777 src/ansys/dpf/gatebin
@@ -132,9 +131,9 @@ jobs:
132131
src/ansys/dpf/core/operators/*
133132
doc/source/_static/dpf_operators.html
134133
commit-message: update generated code
135-
title: Update generated code for DPF ${{ github.event.inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}${{ github.event.inputs.standalone_branch_suffix || '' }} on ${{ github.ref_name }}
134+
title: Update generated code for DPF ${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}${{ github.event.inputs.standalone_branch_suffix || '' }} on ${{ github.ref_name }}
136135
body: An update of generated code has been triggered either manually or by an update in the dpf-standalone repository.
137-
branch: maint/update_code_for_${{ github.event.inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}${{ github.event.inputs.standalone_branch_suffix || '' }}_on_${{ github.ref_name }}
136+
branch: maint/update_code_for_${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}${{ github.event.inputs.standalone_branch_suffix || '' }}_on_${{ github.ref_name }}
138137
labels: server-sync
139138
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
140139
reviewers: ${{ github.ref_name == 'master' && 'ansys/dpf_integration_proxies' || '' }}

0 commit comments

Comments
 (0)