Skip to content

Commit 0c528ac

Browse files
authored
Release v1.1.1-rc.0 (#36)
2 parents 63f6e45 + 0c377cb commit 0c528ac

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

.github/workflows/draft_release_hotfix_pr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
5050
echo "RELEASE_TYPE=hotfix" >> $GITHUB_ENV
5151
52-
- name: Check whether pre-release-version
52+
- name: Check whether pre-release version
5353
if: contains(env.RELEASE_VERSION, 'alpha') || contains(env.RELEASE_VERSION, 'beta') || contains(env.RELEASE_VERSION, 'rc')
5454
run: |
5555
echo "PRE_RELEASE=true" >> $GITHUB_ENV
@@ -70,7 +70,7 @@ jobs:
7070
run: |
7171
PR_LABELS="automated-pr,${RELEASE_TYPE}-pr"
7272
73-
[[ ${PRE_RELEASE:false} == "true" ]] && gh label create 'pre-release' --force && PR_LABELS="$PR_LABELS,pre-release"
73+
[[ ${PRE_RELEASE:-false} == "true" ]] && gh label create 'pre-release' --force && PR_LABELS="$PR_LABELS,pre-release"
7474
7575
for LABEL in $(echo $PR_LABELS | sed "s/,/ /g"); do gh label create $LABEL --force; done
7676

.github/workflows/release.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ jobs:
4949
VERSION=${BRANCH_NAME#hotfix/}
5050
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
5151
52+
- name: Check whether pre-release version
53+
if: contains(env.RELEASE_VERSION, 'alpha') || contains(env.RELEASE_VERSION, 'beta') || contains(env.RELEASE_VERSION, 'rc')
54+
run: |
55+
echo "PRE_RELEASE=true" >> $GITHUB_ENV
56+
5257
- name: Create release
5358
env:
5459
RELEASE_TAG: "${{ env.TAG_PREFIX }}${{ env.RELEASE_VERSION }}"
@@ -57,7 +62,8 @@ jobs:
5762
${{ env.RELEASE_TAG }} \
5863
--target ${{ github.event.pull_request.merge_commit_sha }} \
5964
--title "${{ env.RELEASE_TAG }}" \
60-
--generate-notes
65+
--generate-notes \
66+
--prerelease=${PRE_RELEASE:-false}
6167
6268
- name: Create PR ${{ github.head_ref }} -> ${{ env.BRANCH_DEVELOP }} and merge automatically
6369
env:

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [1.1.1-rc.0](https://github.com/ansidev/sample-gitflow-release-workflows/compare/v1.1.0...v1.1.1-rc.0) (2023-02-14)
6+
7+
### Bug Fixes
8+
9+
* **workflow-draft-release-hotfix-pr:** correct bash syntax ([e2b4f5d](https://github.com/ansidev/sample-gitflow-release-workflows/commit/e2b4f5d5b4f9534d0bd12eda8845b8d7c5da070f))
10+
* **workflow-release:** set the release as pre-release depending on the version ([dad55ae](https://github.com/ansidev/sample-gitflow-release-workflows/commit/dad55ae20f9482519d7a5c7b80051c8b812656ba))
11+
512
## [1.1.0](https://github.com/ansidev/sample-gitflow-release-workflows/compare/v1.0.2...v1.1.0) (2023-02-14)
613

714
### Features

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.0
1+
1.1.1-rc.0

0 commit comments

Comments
 (0)