File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 64
64
# Filter out the major and minor version numbers
65
65
major=$(echo $PRELIMINARY_VERSION | cut -d. -f1)
66
66
minor=$(echo $PRELIMINARY_VERSION | cut -d. -f2)
67
+ patch=$(echo $PRELIMINARY_VERSION | cut -d. -f3)
68
+ echo "VERSION_MAJOR=$major" >> $GITHUB_ENV
69
+ echo "VERSION_MINOR=$major" >> $GITHUB_ENV
70
+ echo "VERSION_PATCH=$major" >> $GITHUB_ENV
67
71
folder=release/$major.$minor
68
72
echo "Folder was found to be $folder"
69
73
# Create a new folder for the version (remove existing one if required)
97
101
if : env.ACCEPTED_FORMAT == 'true'
98
102
shell : bash
99
103
run : |
100
- curl https://raw.githubusercontent.com/pyansys/actions/main/scripts/version_mapper.py -o version_mapper.py
104
+ # Filter out desired scripts branch
105
+ if [[ "${{ env.VERSION_MAJOR }}" == dev* ] then; scripts_branch=main; else scripts_branch=release/${{ env.VERSION }}; fi
106
+ curl https://raw.githubusercontent.com/pyansys/actions/$scripts_branch/scripts/version_mapper.py -o version_mapper.py
101
107
102
108
- name : " Update the version JSON file"
103
109
if : env.ACCEPTED_FORMAT == 'true'
You can’t perform that action at this time.
0 commit comments