1- name : Create milestones for Ansys Release
2- on :
3- workflow_dispatch :
4- inputs :
5- release-date :
6- description : ' Milestone release date (format must be YYYY/MM/DD)'
7- required : true
8- default : ' 2023/01/30'
9-
10- env :
11- MAIN_PYTHON_VERSION : ' 3.11'
12-
13- jobs :
14- create-milestone :
15- name : Create a milestone in ${{ matrix.pyansys-projects }}
16- runs-on : ubuntu-latest
17- strategy :
18- fail-fast : false
19- matrix :
20- pyansys-projects :
21- [
22- " ansys/openapi-common" ,
23- " ansys/pyadditive" ,
24- " ansys/pyaedt" ,
25- " ansys/pyansys-geometry" ,
26- " ansys/pyansys-math" ,
27- " ansys/pydpf-core" ,
28- " ansys/pydpf-post" ,
29- " ansys/pydpf-composites" ,
30- " ansys/pydyna" ,
31- " ansys/pydynamicreporting" ,
32- " ansys/pyedb-core" ,
33- " ansys/pyensight" ,
34- " ansys/pyfluent" ,
35- " ansys/pygranta" ,
36- " ansys/pymapdl" ,
37- " ansys/pymechanical" ,
38- " ansys/pymotorcad" ,
39- " ansys/pyoptislang" ,
40- " ansys/pypim" ,
41- " ansys/pyprimemesh" ,
42- " ansys/pyrocky" ,
43- " ansys/pyseascape" ,
44- " ansys/pysherlock" ,
45- " ansys/pysimai" ,
46- " ansys/pysystem-coupling" ,
47- " ansys/pyturbogrid" ,
48- " ansys/pytwin" ,
49- # MAPDL - ALL
50- " ansys/pymapdl-reader" ,
51- # FLUENT - ALL
52- " ansys/pyfluent-parametric" ,
53- " ansys/pyfluent-visualization" ,
54- # TOOLS
55- " ansys/ansys-tools-path" ,
56- " ansys/ansys-tools-protoc-helper" ,
57- " ansys/pyansys-tools-report" ,
58- " ansys/pyansys-tools-versioning" ,
59- " ansys/pyansys-units" ,
60- ]
61- steps :
62- - uses : actions/checkout@v4
63-
64- - name : Set up Python ${{ env.MAIN_PYTHON_VERSION }}
65- uses : actions/setup-python@v5
66- with :
67- python-version : ${{ env.MAIN_PYTHON_VERSION }}
68-
69- - name : Linux pip cache
70- uses : actions/cache@v4
71- if : ${{ runner.os == 'Linux' }}
72- with :
73- path : ~/.cache/pip
74- key : Python-${{ runner.os }}-create-milestone
75-
76- - name : Install requirements
77- run : |
78- pip install pygithub
79-
80- - name : Create the milestone
81- env :
82- TOKEN : ${{ secrets.CREATE_MILESTONE_TOKEN }}
83- REPOSITORY : ${{ matrix.pyansys-projects }}
84- RELEASE_DATE : ${{ github.event.inputs.release-date }}
85- run : |
86- python tools/milestone.py
1+ name : Create milestones for Ansys Release
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ release-date :
6+ description : ' Milestone release date (format must be YYYY/MM/DD)'
7+ required : true
8+ default : ' 2023/01/30'
9+
10+ env :
11+ MAIN_PYTHON_VERSION : ' 3.11'
12+
13+ jobs :
14+ create-milestone :
15+ name : Create a milestone in ${{ matrix.pyansys-projects }}
16+ runs-on : ubuntu-latest
17+ strategy :
18+ fail-fast : false
19+ matrix :
20+ pyansys-projects :
21+ [
22+ " ansys/openapi-common" ,
23+ " ansys/pyadditive" ,
24+ " ansys/pyaedt" ,
25+ " ansys/pyansys-geometry" ,
26+ " ansys/pyansys-math" ,
27+ " ansys/pydpf-core" ,
28+ " ansys/pydpf-post" ,
29+ " ansys/pydpf-composites" ,
30+ " ansys/pydyna" ,
31+ " ansys/pydynamicreporting" ,
32+ " ansys/pyedb-core" ,
33+ " ansys/pyensight" ,
34+ " ansys/pyfluent" ,
35+ " ansys/pygranta" ,
36+ " ansys/pyhps" ,
37+ " ansys/pymapdl" ,
38+ " ansys/pymechanical" ,
39+ " ansys/pymotorcad" ,
40+ " ansys/pyoptislang" ,
41+ " ansys/pypim" ,
42+ " ansys/pyprimemesh" ,
43+ " ansys/pyrocky" ,
44+ " ansys/pyseascape" ,
45+ " ansys/pysherlock" ,
46+ " ansys/pysimai" ,
47+ " ansys/pysystem-coupling" ,
48+ " ansys/pyturbogrid" ,
49+ " ansys/pytwin" ,
50+ # MAPDL - ALL
51+ " ansys/pymapdl-reader" ,
52+ # FLUENT - ALL
53+ " ansys/pyfluent-parametric" ,
54+ " ansys/pyfluent-visualization" ,
55+ # TOOLS
56+ " ansys/ansys-tools-path" ,
57+ " ansys/ansys-tools-protoc-helper" ,
58+ " ansys/pyansys-tools-report" ,
59+ " ansys/pyansys-tools-versioning" ,
60+ " ansys/pyansys-units" ,
61+ ]
62+ steps :
63+ - uses : actions/checkout@v4
64+
65+ - name : Set up Python ${{ env.MAIN_PYTHON_VERSION }}
66+ uses : actions/setup-python@v5
67+ with :
68+ python-version : ${{ env.MAIN_PYTHON_VERSION }}
69+
70+ - name : Linux pip cache
71+ uses : actions/cache@v4
72+ if : ${{ runner.os == 'Linux' }}
73+ with :
74+ path : ~/.cache/pip
75+ key : Python-${{ runner.os }}-create-milestone
76+
77+ - name : Install requirements
78+ run : |
79+ pip install pygithub
80+
81+ - name : Create the milestone
82+ env :
83+ TOKEN : ${{ secrets.CREATE_MILESTONE_TOKEN }}
84+ REPOSITORY : ${{ matrix.pyansys-projects }}
85+ RELEASE_DATE : ${{ github.event.inputs.release-date }}
86+ run : |
87+ python tools/milestone.py
0 commit comments