Skip to content

Commit 68c71b9

Browse files
committed
handle major-feature
1 parent 7ab47f1 commit 68c71b9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build-and-release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ jobs:
8383
- name: Get major-feature from version
8484
id: get-major-feature
8585
run: |
86-
echo "major-feature=\"$(echo "${{ github.event.inputs.version }}" | cut -d '.' -f 1,2)\"" >> "$GITHUB_OUTPUT"
86+
echo "MAJOR_FEATURE=$(echo "${{ github.event.inputs.version }} | cut -d '.' -f 1,2)" >> "$GITHUB_ENV"
87+
- name: Verify major-feature
88+
run: |
89+
echo "major_feature: $MAJOR_FEATURE"
8790
- name: Checkout backup-utils
8891
uses: actions/checkout@v4
8992
with:
@@ -93,7 +96,7 @@ jobs:
9396
uses: stefanzweifel/git-auto-commit-action@v4
9497
id: empty-commit
9598
with:
96-
branch: ${{ steps.get-major-feature.outputs.major-feature}}-stable
99+
branch: ${{ env.MAJOR_FEATURE }}-stable
97100
commit_message: "Test ${{ github.event.inputs.version }} release commit"
98101
commit_user_name: "release-controller[bot]"
99102
commit_user_email: "223695+release-controller[bot]@users.noreply.github.com"

0 commit comments

Comments
 (0)