File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
actions/ci/generate-release Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,9 @@ runs:
177177 # Remove 'v' prefix if present
178178 current_version=${current_version#v}
179179 IFS='.' read -r major minor patch <<< "$current_version"
180+ # Fallback for missing minor/patch
181+ if [ -z "$minor" ]; then minor=0; fi
182+ if [ -z "$patch" ]; then patch=0; fi
180183
181184 echo "📊 Current version: v$major.$minor.$patch"
182185 echo "📊 Release type: $release_type"
Original file line number Diff line number Diff line change 4141 with :
4242 ref : ${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
4343
44- - name : Job Outputs
45- run : |
46- echo "new_version=${{ needs.generate-release.outputs.new_version }}" >> $GITHUB_ENV
47- echo "release_type=${{ needs.generate-release.outputs.release_type }}" >> $GITHUB_ENV
48- echo "previous_tag=${{ needs.generate-release.outputs.previous_tag }}" >> $GITHUB_ENV
49- echo "should_release=${{ needs.generate-release.outputs.should_release }}" >> $GITHUB_ENV
50- echo "should_publish=${{ needs.generate-release.outputs.should_publish }}" >> $GITHUB_ENV
51- echo "branch_name=${{ needs.generate-release.outputs.branch_name }}" >> $GITHUB_ENV
52-
53-
5444 - name : Build Bicep Code
5545 id : build
5646 uses : ./.github/actions/ci/bicep-standard-ci
You can’t perform that action at this time.
0 commit comments