File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 5252 - name : Extract version from branch-name
5353 id : version
5454 run : |
55- if VERSION=$(echo "${{ env.BRANCH_NAME }}" | sed -E 's/^v([0-9]+\.[0-9]+)-.*/\1/') then
55+ if [[ "${{ env.BRANCH_NAME }}" == "main" ]]; then
5656 VERSION="main"
5757 else
5858 VERSION=$(echo "${{ env.BRANCH_NAME }}" | sed -E 's/^v([0-9]+\.[0-9]+)-.*/\1/')
6565 echo "VERSION=$VERSION" >> ${GITHUB_OUTPUT}
6666 echo "Extracted VERSION is: $VERSION"
6767
68-
69- if [[ "${{ env.BRANCH_NAME }}" == "main" ]]; then
70- VERSION="main"
71- else
72- VERSION=$(echo "${{ env.BRANCH_NAME }}" | sed -E 's/^v([0-9]+\.[0-9]+)-.*/\1/')
73- fi
74- echo "VERSION=$VERSION" >> ${GITHUB_OUTPUT}
75- echo "Extracted VERSION is: $VERSION"
76-
7768 - name : Update related files
7869 id : apply-changes
7970 run : |
You can’t perform that action at this time.
0 commit comments