Skip to content

Commit b19b1c9

Browse files
author
Evilazaro Alves
committed
new version
1 parent fa7e663 commit b19b1c9

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

.github/actions/ci/generate-release/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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"

.github/workflows/ci.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,6 @@ jobs:
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

0 commit comments

Comments
 (0)